protected function validField($field , $value , $config) {
        foreach ($config as $validator) {
            $class  = $validator['class'];
            $option = $validator['options'];
            /* @var $test ValidatorInterface */
            $test = new $class($option);
            if(!$this->executeTest($value , $test)) {
                $this->isValid = false;
                $this->addError($field, $test->getMessage());
            }
        }
    }
protected function validField($field , $value , $config) {
        foreach ($config as $validator) {
            $class  = $validator['class'];
            $option = $validator['options'];
            /* @var $test ValidatorInterface */
            $test = new $class($option);
            if(!$this->executeTest($value , $test)) {
                $this->isValid = false;
                $this->addError($field, $test->getMessage());
            }
        }
    }
protected function validField ( $ field , $ value , $ config ) { foreach ( $ config as $ validator ) { $ class = $ validator [ 'class' ] ; $ option = $ validator [ 'options' ] ; /* @var $test ValidatorInterface */ $ test = new $ class ( $ option ) ; if ( ! $ this -> executeTest ( $ value , $ test ) ) { $ this -> isValid = false ; $ this -> addError ( $ field , $ test -> getMessage ( ) ) ; } } }
execute all validation for a field
@param string $field
@param mixed $value
@param array $config
execute all validation for a field