예제 #1
0
 /**
  * Get the errors.
  * 
  * @access public
  * @return array
  */
 public static function getError()
 {
     $errors = dao::$errors;
     dao::$errors = array();
     // Must clear it.
     return $errors;
 }
예제 #2
0
 /**
  * Get the errors.
  * 
  * @param  boolean $join 
  * @access public
  * @return array
  */
 public static function getError($join = false)
 {
     $errors = dao::$errors;
     dao::$errors = array();
     // Must clear it.
     if (!$join) {
         return $errors;
     }
     if (is_array($errors)) {
         $message = '';
         foreach ($errors as $item) {
             is_array($item) ? $message .= join('\\n', $item) . '\\n' : ($message .= $item . '\\n');
         }
         return $message;
     }
 }
예제 #3
0
 /**
  * 获取错误。
  * Get the errors.
  * 
  * @access public
  * @return array
  */
 public function getError()
 {
     $errors = dao::$errors;
     dao::$errors = array();
     // 清除dao的错误信息   Must clear it.
     return $errors;
 }