PHP Class Xtreamwayz\HTMLFormValidator\FormElement\BaseFormElement

Inheritance: implements Zend\InputFilter\InputProviderInterface
Show file Open project: xtreamwayz/html-form-validator

Protected Properties

Property Type Description
$document DOMDocument
$node DOMElement

Public Methods

Method Description
__construct ( DOMElement $node, DOMDocument $document )
getInputSpecification ( ) : array Should return an array specification compatible with {@link Zend\InputFilter\Factory::createInput()}.

Protected Methods

Method Description
getFilters ( )
getName ( )
getValidators ( )
isRequired ( )
parseDataAttribute ( string $dataAttribute ) : Generator Parse data attribute value for validators, filters and options

Method Details

__construct() public method

public __construct ( DOMElement $node, DOMDocument $document )
$node DOMElement
$document DOMDocument

getFilters() protected method

protected getFilters ( )

getInputSpecification() public method

Should return an array specification compatible with {@link Zend\InputFilter\Factory::createInput()}.
public getInputSpecification ( ) : array
return array

getName() protected method

protected getName ( )

getValidators() protected method

protected getValidators ( )

isRequired() protected method

protected isRequired ( )

parseDataAttribute() protected method

Parse data attribute value for validators, filters and options
protected parseDataAttribute ( string $dataAttribute ) : Generator
$dataAttribute string
return Generator

Property Details

$document protected property

protected DOMDocument $document
return DOMDocument

$node protected property

protected DOMElement $node
return DOMElement