function praxe_addlocation($schoolid = null) { if (!is_null($schoolid)) { $this->schoolid = (int) $schoolid; } parent::praxe_actionform(); }
function praxe_assignteachers($schoolid = null) { if (!is_null($schoolid)) { $this->schoolid = (int) $schoolid; } parent::praxe_actionform(); }
function praxe_assignstudtolocation($locationid) { $this->locationid = $locationid; parent::praxe_actionform(get_class($this)); }
function praxe_assigntolocation() { parent::praxe_actionform(get_class($this)); }
/** * (non-PHPdoc) * * @see praxe_actionform::validation() * @param array $data - Requires timestart, timeend, schoolroom */ public function validation($data, $files = array()) { $aErrors = parent::validation($data, $files); if ($data['timestart'] > $data['timeend'] || $data['timestart'] < time() + 60 * 60 * 4) { $aErrors['time'] = get_string('error_timeschedule', 'praxe'); } if (trim($data['schoolroom']) == '') { $aErrors['schoolroom'] = get_string('error_schoolroom', 'praxe'); } if (trim($data['lessubject']) == '') { $aErrors['lessubject'] = get_string('err_required', 'form'); } return $aErrors; }
function praxe_addschool() { parent::praxe_actionform(); }