public function validateComponent($handler_id, array $options = array())
    {
        $result = $this->validator->run($handler_id, $this->submitted, $options);

        if ($result === true) {
            return array();
        }

        return $this->errors = (array) $result;
    }
public function validateComponent($handler_id, array $options = array())
    {
        $result = $this->validator->run($handler_id, $this->submitted, $options);

        if ($result === true) {
            return array();
        }

        return $this->errors = (array) $result;
    }
public function validateComponent ( $ handler_id , array $ options = array ( ) ) { $ result = $ this -> validator -> run ( $ handler_id , $ this -> submitted , $ options ) ; if ( $ result === true ) { return array ( ) ; } return $ this -> errors = ( array ) $ result ; }
Validates a submitted set of elements
@param string $handler_id
@param array $options
@return array
Validates a submitted set of elements