PHP 클래스 Symfony\Component\DomCrawler\Field\FormField

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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