/**
  * Declares the validation rules.
  */
 public function rules()
 {
     return CMap::mergeArray(parent::rules(), array(array('genderId', 'required')));
 }
 /**
  * Declares the validation rules.
  */
 public function rules()
 {
     return CMap::mergeArray(parent::rules(), array(array('birthdayDay', 'required', 'message' => 'Введите день рождения'), array('birthdayMonth', 'required', 'message' => 'Введите месяц рождения'), array('birthdayYear', 'required', 'message' => 'Введите год рождения'), array('documentTypeId, genderId, seriesNumber, countryId', 'required'), array('documentTypeId', 'in', 'range' => array_keys(self::getPossibleTypes())), array('genderId', 'in', 'range' => array_keys(self::getPossibleGenders())), array('birthday', 'date', 'format' => 'dd.MM.yyyy'), array('srok, expirationDay, expirationMonth, expirationYear', 'safe'), array('expirationDate', 'validateExpirationDate')));
 }
 /**
  * Declares the validation rules.
  */
 public function rules()
 {
     return CMap::mergeArray(parent::rules(), array(array('birthday', 'date', 'format' => 'dd.MM.yyyy')));
 }
 /**
  * Declares the validation rules.
  */
 public function rules()
 {
     return CMap::mergeArray(parent::rules(), array(array('firstName, lastName, number, birthday, documentTypeId, genderId, countryId', 'required'), array('birthday', 'date', 'format' => 'dd.MM.yyyy'), array('series', 'safe')));
 }