31 return $this->sErrorMsg;
42 public function isEqual($uValueA,$uValueB,$sErrorMsg=
'KO isEqual'){
43 if($uValueA==$uValueB){
46 $this->sErrorMsg=$sErrorMsg;
57 public function isStrictlyEqual($uValueA,$uValueB,$sErrorMsg=
'KO isStrictlyEqual'){
58 if($uValueA === $uValueB){
61 $this->sErrorMsg=$sErrorMsg;
72 public function isNotEqual($uValueA,$uValueB,$sErrorMsg=
'KO isNotEqual'){
73 if($uValueA!=$uValueB){
76 $this->sErrorMsg=$sErrorMsg;
87 public function isUpperThan($uValueA,$uValueB,$sErrorMsg=
'KO isUpperThan'){
88 if($uValueA > $uValueB){
91 $this->sErrorMsg=$sErrorMsg;
103 if($uValueA >= $uValueB){
106 $this->sErrorMsg=$sErrorMsg;
117 public function isLowerThan($uValueA,$uValueB,$sErrorMsg=
'KO isLowerThan'){
118 if($uValueA < $uValueB){
121 $this->sErrorMsg=$sErrorMsg;
133 if($uValueA <= $uValueB){
136 $this->sErrorMsg=$sErrorMsg;
146 public function isEmpty($uValueA,$sErrorMsg=
'KO isEmpty'){
147 if(trim($uValueA)==
''){
150 $this->sErrorMsg=$sErrorMsg;
160 public function isNotEmpty($uValueA,$sErrorMsg=
'KO isNotEmpty'){
161 if(trim($uValueA)!=
''){
164 $this->sErrorMsg=$sErrorMsg;
175 if(preg_match(
'/^[\w.\-_]+@[\w.\-_]+\.[a-zA-Z]{2,6}$/',$uValueA)){
178 $this->sErrorMsg=$sErrorMsg;
188 public function matchExpression($uValueA,$sExpression,$sErrorMsg=
'KO matchExpression'){
189 if(preg_match($sExpression,$uValueA)){
192 $this->sErrorMsg=$sErrorMsg;
203 if(!preg_match($sExpression,$uValueA)){
206 $this->sErrorMsg=$sErrorMsg;
matchExpression($uValueA, $sExpression, $sErrorMsg='KO matchExpression')
isLowerOrEqualThan($uValueA, $uValueB, $sErrorMsg='KO isLowerOrEqualThan')
isNotEqual($uValueA, $uValueB, $sErrorMsg='KO isNotEqual')
isEqual($uValueA, $uValueB, $sErrorMsg='KO isEqual')
isNotEmpty($uValueA, $sErrorMsg='KO isNotEmpty')
notMatchExpression($uValueA, $sExpression, $sErrorMsg='KO notMatchExpression')
isUpperOrEqualThan($uValueA, $uValueB, $sErrorMsg='KO isUpperOrEqualThan')
isUpperThan($uValueA, $uValueB, $sErrorMsg='KO isUpperThan')
isLowerThan($uValueA, $uValueB, $sErrorMsg='KO isLowerThan')
isEmpty($uValueA, $sErrorMsg='KO isEmpty')
isEmailValid($uValueA, $sErrorMsg='KO isEmailValid')
isStrictlyEqual($uValueA, $uValueB, $sErrorMsg='KO isStrictlyEqual')