public function runAction($name, $className, $fieldName, $validatorName)
    {
        $this->formName = $name;
        $this->formClassName = $className;
        $this->fieldName = $fieldName;
        $this->validatorName = $validatorName;
        $this->form = $this->getForm();

        $this->formObject = $this->getFormObject();
        $this->formObject->setForm($this->form);

        $this->validation = $this->getFieldValidation();

        $validatorDataObject = new ValidatorDataObject($this->formObject, $this->validation);

        /** @var ValidatorInterface $validator */
        $validator = Core::instantiate(
            $this->validation->getClassName(),
            $this->validation->getOptions(),
            $validatorDataObject
        );

        $fieldValue = ObjectAccess::getProperty($this->form, $this->fieldName);
        $result = $validator->validate($fieldValue);

        $this->result->merge($result);
    }
public function runAction($name, $className, $fieldName, $validatorName)
    {
        $this->formName = $name;
        $this->formClassName = $className;
        $this->fieldName = $fieldName;
        $this->validatorName = $validatorName;
        $this->form = $this->getForm();

        $this->formObject = $this->getFormObject();
        $this->formObject->setForm($this->form);

        $this->validation = $this->getFieldValidation();

        $validatorDataObject = new ValidatorDataObject($this->formObject, $this->validation);

        /** @var ValidatorInterface $validator */
        $validator = Core::instantiate(
            $this->validation->getClassName(),
            $this->validation->getOptions(),
            $validatorDataObject
        );

        $fieldValue = ObjectAccess::getProperty($this->form, $this->fieldName);
        $result = $validator->validate($fieldValue);

        $this->result->merge($result);
    }
public function runAction ( $ name , $ className , $ fieldName , $ validatorName ) { $ this -> formName = $ name ; $ this -> formClassName = $ className ; $ this -> fieldName = $ fieldName ; $ this -> validatorName = $ validatorName ; $ this -> form = $ this -> getForm ( ) ; $ this -> formObject = $ this -> getFormObject ( ) ; $ this -> formObject -> setForm ( $ this -> form ) ; $ this -> validation = $ this -> getFieldValidation ( ) ; $ validatorDataObject = new ValidatorDataObject ( $ this -> formObject , $ this -> validation ) ; /** @var ValidatorInterface $validator */ $ validator = Core :: instantiate ( $ this -> validation -> getClassName ( ) , $ this -> validation -> getOptions ( ) , $ validatorDataObject ) ; $ fieldValue = ObjectAccess :: getProperty ( $ this -> form , $ this -> fieldName ) ; $ result = $ validator -> validate ( $ fieldValue ) ; $ this -> result -> merge ( $ result ) ; }
Main action that will process the field validation.

@param string $name
@param string $className
@param string $fieldName
@param string $validatorName
Main action that will process the field validation .