CourseSession.class.php 566 B

123456789101112131415161718192021222324252627282930313233
  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. function CourseSession($id,$title) {
  19. parent::Resource($id,RESOURCE_SESSION_COURSE);
  20. $this->title = $title;
  21. }
  22. /*
  23. * Show this Event
  24. */
  25. function show() {
  26. parent::show();
  27. echo $this->title;
  28. }
  29. }