PHP Class Symfony\Component\DomCrawler\Field\FormField

Author: Fabien Potencier ([email protected])
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$disabled boolean
$document DOMDocument
$name string
$node DOMNode
$value string
$xpath DOMXPath

Public Methods

Method Description
__construct ( DOMNode $node ) Constructor.
getName ( ) : string Returns the name of the field.
getValue ( ) : string | array Gets the value of the field.
hasValue ( ) : boolean Returns true if the field should be included in the submitted values.
isDisabled ( ) : boolean Check if the current field is disabled
setValue ( string $value ) Sets the value of the field.

Protected Methods

Method Description
initialize ( ) Initializes the form field.

Method Details

__construct() public method

Constructor.
public __construct ( DOMNode $node )
$node DOMNode The node associated with this field

getName() public method

Returns the name of the field.
public getName ( ) : string
return string The name of the field

getValue() public method

Gets the value of the field.
public getValue ( ) : string | array
return string | array The value of the field

hasValue() public method

Returns true if the field should be included in the submitted values.
public hasValue ( ) : boolean
return boolean true if the field should be included in the submitted values, false otherwise

initialize() abstract protected method

Initializes the form field.
abstract protected initialize ( )

isDisabled() public method

Check if the current field is disabled
public isDisabled ( ) : boolean
return boolean

setValue() public method

Sets the value of the field.
public setValue ( string $value )
$value string The value of the field

Property Details

$disabled protected_oe property

protected bool $disabled
return boolean

$document protected_oe property

protected DOMDocument $document
return DOMDocument

$name protected_oe property

protected string $name
return string

$node protected_oe property

protected DOMNode $node
return DOMNode

$value protected_oe property

protected string $value
return string

$xpath protected_oe property

protected DOMXPath $xpath
return DOMXPath