【问题标题】:Using Zend_Filter_Input, are Filters or Validators processed first?使用 Zend_Filter_Input,是先处理过滤器还是验证器?
【发布时间】:2010-10-14 03:02:13
【问题描述】:

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

【问题讨论】:

    标签: php zend-framework input filter validation


    【解决方案1】:

    来自 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;
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2012-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-02
      • 2012-08-16
      • 1970-01-01
      • 2011-08-13
      • 1970-01-01
      相关资源
      最近更新 更多