Class flFormElement
flFormElement Class
Base class for all form elements.
Direct known subclasses
flFormElementButton
,
flFormElementCheckbox
,
flFormElementChecklist
,
flFormElementHidden
,
flFormElementPane
,
flFormElementRecaptcha
,
flFormElementSelect
,
flFormElementSubmit
,
flFormElementText
,
flFormElementTextArea
Indirect known subclasses
flFormElementEmail
,
flFormElementFile
,
flFormElementWYSIWYG
,
flFormElementImage
,
flFormElementInteger
,
flFormElementNumber
,
flFormElementPassword
,
flFormElementRadio
,
flFormElementSearch
,
flFormElementTextSuggest
,
flFormElementUri
Package: fusionLib
Copyright: Copyright (c) 2007 - 2016 fusionLib. All rights reserved.
Located at system/libs/Form/flFormElement.php
Methods summary
public
|
|
protected
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
#
setValidText( string $text )
Set the text to return with getError() for valid elements if not the form default. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
abstract public
string
|
|
public
string
|
|
public
|
|
protected
string
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
public
string
|
|
public
string
|
|
public
|
Properties summary
protected
string
|
$name
The name of the element. |
|
protected
string
|
$label
The label for the element. |
#
null
|
protected
string
|
$title
The title for the element. |
#
null
|
protected
string
|
$description
The description for the element. |
#
null
|
protected
string
|
$value
The value of the element. |
|
protected
boolean
|
$readonly
Flags the element as readonly. |
#
false
|
protected
boolean
|
$disabled
Flags the element as disabled. |
#
false
|
protected
boolean
|
$required
Flags element is required. |
#
false
|
protected
array
|
$validators
Element validators. |
#
array()
|
protected
array
|
$error
The first error generated during validating the form. |
#
null
|
protected
boolean
|
$isValid
Flags if the element is valid according to the validators. |
#
true
|
protected
|
$form
The form the element belongs to. |
#
null
|
protected
string
|
$isValidText
Text to return for valid elements. |
#
null
|
protected
string
|
$class
CSS Class to include in attribHTML. |
#
null
|
protected
string
|
$placeholder
HTML5 Placeholder. |
#
null
|
protected
string
|
$autocomplete
Optional autocomplete parameter |
#
null
|
protected
string
|
$js
JavaScript required by the element. |
#
''
|