for the Univesity of Geneva */ class CourseEntity extends Entity { public function __construct() { $current_course = self::current_course(); if ($current_course) { $this->defaults('c_id', self::current_course()->get_id()); } $this->defaults('session_id', api_get_session_id()); } }