public function addValidator(ValidatorInterface $validator)
    {
        if ($validator instanceof tao_helpers_form_validators_NotEmpty) {
            $this->addAttribute('required', true);
        }
        $this->validators[] = $validator;
    }
public function addValidator(ValidatorInterface $validator)
    {
        if ($validator instanceof tao_helpers_form_validators_NotEmpty) {
            $this->addAttribute('required', true);
        }
        $this->validators[] = $validator;
    }
public function addValidator ( ValidatorInterface $ validator ) { if ( $ validator instanceof tao_helpers_form_validators_NotEmpty ) { $ this -> addAttribute ( 'required' , true ) ; } $ this -> validators [ ] = $ validator ; }
Short description of method addValidator

@author Joel Bout, <joel@taotesting.com>
@param ValidatorInterface $validator
Short description of method addValidator