views:

85

answers:

1

When using Zend_Filter_Input, are Filters or Validators processed first?

+4  A: 

from Zend\Filter\Input.php:

public function isValid($fieldName = null)
{
    $this->_process();
    (...)
}


protected function _process()
{
    if ($this->_processed === false) {
        $this->_filter();
        $this->_validate();
        $this->_processed = true;
    }
}
bouke