コード例 #1
0
ファイル: Array.php プロジェクト: jorgenils/zend-framework
 /**
  * Get Errors
  *
  * Proxies to the decorated validator when this doesn't have any raised 
  * errors of its own.
  *
  * @deprecated Since 1.5.0
  *
  * @returns array
  */
 public function getErrors()
 {
     if (empty($this->_errors)) {
         return $this->validator->getErrors();
     } else {
         return $this->_errors;
     }
 }
コード例 #2
0
 /**
  * Used to bring in messages and errors from aggregated validates
  *
  * @param Zend_Validate_Interface $validate
  * return Zend_Validate_Interface
  */
 protected function _addValidateMessagesAndErrors($validate)
 {
     foreach ($validate->getMessages() as $code => $message) {
         $this->_messages[$code] = $message;
     }
     foreach ($validate->getErrors() as $error) {
         $this->_errors[] = $error;
     }
     return $this;
 }