Changeset 2750 for branches/0.11

Show
Ignore:
Timestamp:
08/31/08 16:25:14 (4 months ago)
Author:
dominik
Message:

readd asparam parameter to the equalsvalidator
fixes #833

Location:
branches/0.11
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/CHANGELOG

    r2741 r2750  
    1919CHG: Dump "xhtml" output type from sample app and introduce a replacement (#802) (David) 
    2020 
     21FIX: AgaviEqualsValidator's docs do not match the actual validation process (#833) (Dominik) 
    2122FIX: Invalid argument name in AgaviValidationManager::hasError() (#832) (David) 
    2223FIX: The gettext translator doesn't interpret the plural forms like the original gettext implementation (#821) (Dominik) 
  • branches/0.11/src/validator/AgaviEqualsValidator.class.php

    r2258 r2750  
    2424 * Parameters: 
    2525 *   'value'   value which the input should equals to 
     26 *   'asparam' whether the 'value' should be treated as a parameter name  
    2627 * 
    2728 * @package    agavi 
     
    5253    if($this->hasParameter('value')) { 
    5354      $value = $this->getParameter('value'); 
     55      if($this->getParameter('asparam', false)) {  
     56        $value = $this->getData($value);  
     57      } 
    5458    } else { 
    5559      $value = $this->getData($this->getArgument());