PHP Класс Symfony\Component\DomCrawler\Field\FormField

Автор: Fabien Potencier ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$disabled boolean
$document DOMDocument
$name string
$node DOMNode
$value string
$xpath DOMXPath

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
initialize ( ) Initializes the form field.

Описание методов

__construct() публичный Метод

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

getName() публичный Метод

Returns the name of the field.
public getName ( ) : string
Результат string The name of the field

getValue() публичный Метод

Gets the value of the field.
public getValue ( ) : string | array
Результат string | array The value of the field

hasValue() публичный Метод

Returns true if the field should be included in the submitted values.
public hasValue ( ) : boolean
Результат boolean true if the field should be included in the submitted values, false otherwise

initialize() абстрактный защищенный Метод

Initializes the form field.
abstract protected initialize ( )

isDisabled() публичный Метод

Check if the current field is disabled
public isDisabled ( ) : boolean
Результат boolean

setValue() публичный Метод

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

Описание свойств

$disabled защищенное свойство

protected bool $disabled
Результат boolean

$document защищенное свойство

protected DOMDocument $document
Результат DOMDocument

$name защищенное свойство

protected string $name
Результат string

$node защищенное свойство

protected DOMNode $node
Результат DOMNode

$value защищенное свойство

protected string $value
Результат string

$xpath защищенное свойство

protected DOMXPath $xpath
Результат DOMXPath