CourseSession.class.php 666 B

1234567891011121314151617181920212223242526272829303132333435
  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 Coursecopy\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. public function show()
  27. {
  28. parent::show();
  29. echo $this->title;
  30. }
  31. }