예제 #1
0
파일: Errors.php 프로젝트: lerre/framework
 /**
  * Returns all the full error messages in an array.
  * 
  * @return  array
  */
 public function fullMessages()
 {
     $fullMessages = array();
     foreach ($this->_errors as $attr => $messages) {
         foreach ($messages as $msg) {
             if ($attr != 'base') {
                 $msg = $this->_base->humanAttributeName($attr) . ' ' . $msg;
             }
             $fullMessages[] = $msg;
         }
     }
     return $fullMessages;
 }