示例#1
0
 protected function doValidate($columns = null)
 {
     if (!$this->alreadyInValidation) {
         $this->alreadyInValidation = true;
         $retval = null;
         $failureMap = array();
         if ($this->aTestApplicant !== null) {
             if (!$this->aTestApplicant->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aTestApplicant->getValidationFailures());
             }
         }
         if ($this->aRegPeriod !== null) {
             if (!$this->aRegPeriod->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aRegPeriod->getValidationFailures());
             }
         }
         if ($this->aTestSchedule !== null) {
             if (!$this->aTestSchedule->validate($columns)) {
                 $failureMap = array_merge($failureMap, $this->aTestSchedule->getValidationFailures());
             }
         }
         if (($retval = TempApplicantPeer::doValidate($this, $columns)) !== true) {
             $failureMap = array_merge($failureMap, $retval);
         }
         $this->alreadyInValidation = false;
     }
     return !empty($failureMap) ? $failureMap : true;
 }