course_entity.class.php 467 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Description of course_entity
  4. *
  5. * @license see /license.txt
  6. * @author Laurent Opprecht <laurent@opprecht.info> for the Univesity of Geneva
  7. */
  8. class CourseEntity extends Entity
  9. {
  10. public function __construct()
  11. {
  12. $current_course = self::current_course();
  13. if ($current_course) {
  14. $this->defaults('c_id', self::current_course()->get_id());
  15. }
  16. $this->defaults('session_id', api_get_session_id());
  17. }
  18. }