PHP Class Symfony\Component\DomCrawler\Field\FormField

Author: Fabien Potencier ([email protected])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Свойство Type Description
$disabled boolean
$document DOMDocument
$name string
$node DOMNode
$value string
$xpath DOMXPath

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
initialize ( ) Initializes the form field.

Method Details

__construct() public méthode

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

getName() public méthode

Returns the name of the field.
public getName ( ) : string
Résultat string The name of the field

getValue() public méthode

Gets the value of the field.
public getValue ( ) : string | array
Résultat string | array The value of the field

hasValue() public méthode

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

initialize() abstract protected méthode

Initializes the form field.
abstract protected initialize ( )

isDisabled() public méthode

Check if the current field is disabled
public isDisabled ( ) : boolean
Résultat boolean

setValue() public méthode

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
Résultat boolean

$document protected_oe property

protected DOMDocument $document
Résultat DOMDocument

$name protected_oe property

protected string $name
Résultat string

$node protected_oe property

protected DOMNode $node
Résultat DOMNode

$value protected_oe property

protected string $value
Résultat string

$xpath protected_oe property

protected DOMXPath $xpath
Résultat DOMXPath