/** * Contructor * * @param $course object The pre-defined course object. Passed by reference, so that extended info can be added. * */ function course_format_fn(&$course) { global $mods, $modnames, $modnamesplural, $modnamesused, $sections; parent::course_format($course); $this->mods =& $mods; $this->modnames =& $modnames; $this->modnamesplural =& $modnamesplural; $this->modnamesused =& $modnamesused; $this->sections =& $sections; }