Changeset 5973


Ignore:
Timestamp:
01/25/12 02:40:50 (4 months ago)
Author:
vain
Message:
  • changed visibility of processValidationLogic() to protected, as defined in the abstract base class
  • added range validator
Location:
trunk/core/viewhelper/form/validators
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/viewhelper/form/validators/maxlength.php

    r5972 r5973  
    8484    } 
    8585 
    86     public function processValidationLogic($value) 
     86    protected function processValidationLogic($value) 
    8787    { 
    8888        if (self::getStringLength($value) >= $this->getMaxlength()) 
  • trunk/core/viewhelper/form/validators/minlength.php

    r5972 r5973  
    8484    } 
    8585 
    86     public function processValidationLogic($value) 
     86    protected function processValidationLogic($value) 
    8787    { 
    8888        if (self::getStringLength($value) <= $this->getMinlength()) 
  • trunk/core/viewhelper/form/validators/string.php

    r5923 r5973  
    4444    } 
    4545 
    46     public function processValidationLogic($value) 
     46    protected function processValidationLogic($value) 
    4747    { 
    4848        if(is_string($value) or is_numeric($value)) 
     
    5555        } 
    5656    } 
    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         } 
    6957} 
    7058?> 
Note: See TracChangeset for help on using the changeset viewer.