Метод |
Описание |
|
__construct ( string $type, string $name, string $value = null, string | array $marked = null, string $indent = null ) : Element |
Constructor |
|
addValidator ( mixed $validator ) : Element |
Add a validator the form element object. |
|
clearErrors ( ) : Element |
Clear errors. |
|
getErrors ( ) : array |
Get form element object errors. |
|
getLabel ( ) : string |
Get form element object label. |
|
getLabelAttributes ( ) : array |
Get the attributes of the form element object label. |
|
getMarked ( ) : mixed |
Get form element object marked values. |
|
getName ( ) : string |
Get form element object name. |
|
getType ( ) : string |
Get form element object type. |
|
getValidators ( ) : array |
Get validators |
|
getValue ( ) : mixed |
Get form element object value. |
|
hasErrors ( ) : array |
Get if form element object has errors. |
|
isCaptcha ( ) : boolean |
Get whether the form element object is a captcha element. |
|
isCheckbox ( ) : boolean |
Get whether the form element object is a checkbox element. |
|
isCsrf ( ) : boolean |
Get whether the form element object is a csrf element. |
|
isMultiple ( ) : boolean |
Get whether the form element object can have multiple input values. |
|
isRadio ( ) : boolean |
Get whether the form element object is a radio element. |
|
isRequired ( ) : boolean |
Get whether the form element object is required. |
|
isSelect ( ) : boolean |
Get whether the form element object is a select element. |
|
isTextarea ( ) : boolean |
Get whether the form element object is a textarea element. |
|
output ( ) : string |
Method to render the child and its child nodes. |
|
render ( boolean $ret = false, integer $depth, string $indent = null, string $errorIndent = null ) : string |
Method to render the child and its child nodes. |
|
setErrorDisplay ( string $container, array $attribs, boolean $pre = false ) : Element |
Set error display values |
|
setErrorPost ( boolean $post = true ) : Element |
Set error post-display |
|
setErrorPre ( boolean $pre = true ) : Element |
Set error pre-display |
|
setLabel ( mixed $label ) : Element |
Set the label of the form element object. |
|
setLabelAttributes ( array $attribs ) : Element |
Set the attributes of the label of the form element object. |
|
setMarked ( mixed $marked ) : Element |
Set the marked value of the form element object. |
|
setName ( string $name ) : Element |
Set the name of the form element object. |
|
setRequired ( boolean $required ) : Element |
Set whether the form element object is required. |
|
setValidators ( array $validators = [] ) : Element |
Set validators |
|
setValue ( mixed $value ) : Element |
Set the value of the form element object. |
|
validate ( ) : boolean |
Validate the form element object. |
|