CourseSession.class.php 578 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. require_once 'Resource.class.php';
  4. /**
  5. * Class CourseSession
  6. * @author Jhon Hinojosa <jhon.hinojosa@beeznest.com>
  7. * @package chamilo.backup
  8. */
  9. class CourseSession extends Resource
  10. {
  11. // The title session
  12. public $title;
  13. /**
  14. * Create a new Session
  15. * @param int $id
  16. * @param string $title
  17. */
  18. public function __construct($id,$title)
  19. {
  20. parent::__construct($id, RESOURCE_SESSION_COURSE);
  21. $this->title = $title;
  22. }
  23. /**
  24. * Show this Event
  25. */
  26. function show() {
  27. parent::show();
  28. echo $this->title;
  29. }
  30. }