Changeset 5973
- Timestamp:
- 01/25/12 02:40:50 (4 months ago)
- Location:
- trunk/core/viewhelper/form/validators
- Files:
-
- 1 added
- 3 edited
-
maxlength.php (modified) (1 diff)
-
minlength.php (modified) (1 diff)
-
range.php (added)
-
string.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/viewhelper/form/validators/maxlength.php
r5972 r5973 84 84 } 85 85 86 p ublicfunction processValidationLogic($value)86 protected function processValidationLogic($value) 87 87 { 88 88 if (self::getStringLength($value) >= $this->getMaxlength()) -
trunk/core/viewhelper/form/validators/minlength.php
r5972 r5973 84 84 } 85 85 86 p ublicfunction processValidationLogic($value)86 protected function processValidationLogic($value) 87 87 { 88 88 if (self::getStringLength($value) <= $this->getMinlength()) -
trunk/core/viewhelper/form/validators/string.php
r5923 r5973 44 44 } 45 45 46 p ublicfunction processValidationLogic($value)46 protected function processValidationLogic($value) 47 47 { 48 48 if(is_string($value) or is_numeric($value)) … … 55 55 } 56 56 } 57 58 /**59 * @param mixed. The Value for validation.60 */61 public function validate($value)62 {63 $valid = false;64 65 $valid = $this->processValidationLogic($value);66 67 return ($valid === true) ? true : false;68 }69 57 } 70 58 ?>
Note: See TracChangeset
for help on using the changeset viewer.
