1

使用 Zend_Filter_Input 时,是先处理过滤器还是验证器?

4

1 回答 1

4

来自 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;
    }
}
于 2009-03-18T16:42:58.203 回答