/** * Специальность * * @return CTerm */ public function getSpeciality() { if (is_null($this->_speciality)) { $this->_speciality = CTaxonomyManager::getSpeciality($this->getRecord()->getItemValue("speciality_id")); } return $this->_speciality; }
public function actionWizardStep2() { $this->setData("speciality_id", CRequest::getInt("speciality_id")); $this->setData("year_id", CRequest::getInt("year_id")); $this->setData("protocol_id", CRequest::getInt("protocol_id")); $this->setData("signer_id", CRequest::getInt("signer_id")); $this->setData("speciality", CTaxonomyManager::getSpeciality(CRequest::getInt("speciality_id"))); $this->renderView("_state_exam/_tickets/wizard.step2.tpl"); }
public function actionDelete() { $speciality = CTaxonomyManager::getSpeciality(CRequest::getInt("id")); $speciality->remove(); $this->redirect("?action=index"); }