public function __construct($profileList = null) { parent::__construct('CLUSR', 'profileselector_select.tpl.php'); if (!$profileList) { $this->profileList = new CLUSR_ProfileList(); } else { $this->profileList = $profileList; } }
public function __construct($course, $assignment, $scoreList) { parent::__construct('CLWRK', 'work_score.tpl.php'); $this->assign('course', $course); $this->assign('scoreList', $scoreList); $this->assign('assignment', $assignment); }