Ad

Using Zend_Filter_Input, Are Filters Or Validators Processed First?

When using Zend_Filter_Input, are Filters or Validators processed first?

Ad

Answer

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;
    }
}
Ad
source: stackoverflow.com
Ad