PHP 클래스 Gregwar\Formidable\Fields\Field

저자: Grégoire Passault ([email protected])
상속: extends Gregwar\Formidable\Language\LanguageAware
파일 보기 프로젝트 열기: gregwar/formidable 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes HTML attributes
$constraints Constraints on the field
$hook
$index
$mapping Data for the mapping
$maxlength
$minlength Text size
$name Field name
$prettyname Pretty name, for error messages
$readonly Is this field read only?
$regex Regular expression
$required Is this field required ?
$type Field type for the HTML code
$value Field value
$valueChanged Is the value changed?

공개 메소드들

메소드 설명
__sleep ( )
__toString ( )
addConstraint ( $closure )
check ( ) Constraints check
getAttribute ( $name ) Get an attribute
getBaseName ( )
getHtml ( )
getIndex ( )
getMappingName ( )
getMappingValue ( )
getName ( )
getSource ( )
getValue ( )
hasAttribute ( $name ) Does this has the attribute $name ?
hookName ( Closure $hook )
needJs ( )
printName ( )
push ( $name, $value = null ) Function called by the dispatcher
readOnly ( )
setAttribute ( $name, $value ) Define an attribute
setName ( $name )
setValue ( $value, $default = false ) Définition de la valeur
source ( $values )
unsetAttribute ( $name ) Remove the attribute $name

메소드 상세

__sleep() 공개 메소드

public __sleep ( )

__toString() 공개 메소드

public __toString ( )

addConstraint() 공개 메소드

public addConstraint ( $closure )

check() 공개 메소드

Constraints check
public check ( )

getAttribute() 공개 메소드

Get an attribute
public getAttribute ( $name )

getBaseName() 공개 메소드

public getBaseName ( )

getHtml() 공개 메소드

public getHtml ( )

getIndex() 공개 메소드

public getIndex ( )

getMappingName() 공개 메소드

public getMappingName ( )

getMappingValue() 공개 메소드

public getMappingValue ( )

getName() 공개 메소드

public getName ( )

getSource() 공개 메소드

public getSource ( )

getValue() 공개 메소드

public getValue ( )

hasAttribute() 공개 메소드

Does this has the attribute $name ?
public hasAttribute ( $name )

hookName() 공개 메소드

public hookName ( Closure $hook )
$hook Closure

needJs() 공개 메소드

public needJs ( )

printName() 공개 메소드

public printName ( )

push() 공개 메소드

Function called by the dispatcher
public push ( $name, $value = null )

readOnly() 공개 메소드

public readOnly ( )

setAttribute() 공개 메소드

Define an attribute
public setAttribute ( $name, $value )

setName() 공개 메소드

public setName ( $name )

setValue() 공개 메소드

Définition de la valeur
public setValue ( $value, $default = false )

source() 공개 메소드

public source ( $values )

unsetAttribute() 공개 메소드

Remove the attribute $name
public unsetAttribute ( $name )

프로퍼티 상세

$attributes 보호되어 있는 프로퍼티

HTML attributes
protected $attributes

$constraints 보호되어 있는 프로퍼티

Constraints on the field
protected $constraints

$hook 보호되어 있는 프로퍼티

protected $hook

$index 보호되어 있는 프로퍼티

protected $index

$mapping 보호되어 있는 프로퍼티

Data for the mapping
protected $mapping

$maxlength 보호되어 있는 프로퍼티

protected $maxlength

$minlength 보호되어 있는 프로퍼티

Text size
protected $minlength

$name 보호되어 있는 프로퍼티

Field name
protected $name

$prettyname 보호되어 있는 프로퍼티

Pretty name, for error messages
protected $prettyname

$readonly 보호되어 있는 프로퍼티

Is this field read only?
protected $readonly

$regex 보호되어 있는 프로퍼티

Regular expression
protected $regex

$required 보호되어 있는 프로퍼티

Is this field required ?
protected $required

$type 보호되어 있는 프로퍼티

Field type for the HTML code
protected $type

$value 보호되어 있는 프로퍼티

Field value
protected $value

$valueChanged 보호되어 있는 프로퍼티

Is the value changed?
protected $valueChanged