示例#1
0
 public function rules()
 {
     return [['dokument_ob_obrazovanii_tip', EnumValidator::className(), 'enumClass' => TipDokumentaObObrazovanii::className()], ['dokument_ob_obrazovanii_tip', 'required'], ['dokument_ob_obrazovanii_seriya', NomerDokumentaValidator::className()], ['dokument_ob_obrazovanii_seriya', 'default'], ['dokument_ob_obrazovanii_nomer', NomerDokumentaValidator::className()], ['dokument_ob_obrazovanii_nomer', 'required'], ['dokument_ob_obrazovanii_data', DateValidator::className(), 'sqlAttribute' => 'dokument_ob_obrazovanii_data'], ['dokument_ob_obrazovanii_data', 'default'], ['kvalifikaciyaDir', ComboValidator::className(), 'directoryAttribute' => 'kvalifikaciyaDir', 'required' => true], ['organizaciyaDir', ComboValidator::className(), 'directoryAttribute' => 'organizaciyaDir', 'required' => true], ['kurs_tip', EnumValidator::className(), 'enumClass' => TipKursa::className()], ['kurs_tip', 'default'], ['kurs_nazvanie', NazvanieValidator::className()], ['kurs_nazvanie', 'default'], ['kurs_chasy', ChasyObucheniyaValidator::className()], ['kurs_chasy', 'default']];
 }
示例#2
0
 public function rules()
 {
     return [['organizaciyaDir', ComboValidator::className(), 'directoryAttribute' => 'organizaciyaDir', 'required' => true], ['org_tip', EnumValidator::className(), 'enumClass' => OrgTipRaboty::className()], ['telefon', TelefonValidator::className(), 'sqlAttribute' => 'telefon']];
 }
示例#3
0
 public function rules()
 {
     return [['dolzhnostDir', ComboValidator::className(), 'directoryAttribute' => 'dolzhnostDir', 'required' => true], ['dolzhnostDir', 'required'], ['org_tip', EnumValidator::className(), 'enumClass' => OrgTipDolzhnosti::className()], ['org_tip', 'required'], ['etap_obrazovaniya', EnumValidator::className(), 'enumClass' => EtapObrazovaniya::className()], ['etap_obrazovaniya', 'default'], ['stazh', StazhValidator::className()], ['stazh', 'required']];
 }