/** * add an error * * @param string $value error to add * @access public */ public function setErrors($err_str, $prefix = false) { if (is_array($err_str)) { foreach ($err_str as $str) { $this->setErrors($str, $prefix); } } else { if ($prefix) { $err_str = "[" . $prefix . "] " . $err_str; } parent::setErrors($err_str); } }