projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit '5ce20fc5d56a32584f8a2d18ae7cde91eb12a5a4' into taskChanges
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
ActionErrors.class.php
diff --git
a/WEB-INF/lib/form/ActionErrors.class.php
b/WEB-INF/lib/form/ActionErrors.class.php
index
04a6333
..
a13104d
100644
(file)
--- a/
WEB-INF/lib/form/ActionErrors.class.php
+++ b/
WEB-INF/lib/form/ActionErrors.class.php
@@
-28,14
+28,18
@@
class ActionErrors {
var $errors = array();
class ActionErrors {
var $errors = array();
-
+
function ActionErrors() {
}
function ActionErrors() {
}
-
- function
isEmpty
() {
- return (count($this->errors)>0 ? false : true
);
+
+ function
no
() {
+ return (count($this->errors)>0 ? false : true);
}
}
-
+
+ function yes() {
+ return (count($this->errors)>0 ? true : false);
+ }
+
function add($message, $arg0 = '', $arg1 = '') {
$patterns = array ("/\{0\}/","/\{1\}/");
$replace = array ($arg0, $arg1);
function add($message, $arg0 = '', $arg1 = '') {
$patterns = array ("/\{0\}/","/\{1\}/");
$replace = array ($arg0, $arg1);
@@
-43,14
+47,6
@@
class ActionErrors {
$this->errors[]["message"] = $message;
}
$this->errors[]["message"] = $message;
}
- function addAll($arr) {
- if (is_array($arr)) {
- foreach ($arr as $k=>$v) {
- $this->errors[$k] = $v;
- }
- }
- }
-
function get($key) {
return $this->errors["$key"]["message"];
}
function get($key) {
return $this->errors["$key"]["message"];
}