Clear the field
static
clearField
($form_name, $field)
-
$form_name: Form name
-
$field: Field name
Redefined in descendants as:
Disable the field
static
disableField
($form_name, $field)
-
$form_name: Form name
-
$field: Field name
Redefined in descendants as:
Enable the field
static
enableField
($form_name, $field)
-
$form_name: Form name
-
$field: Field name
Redefined in descendants as:
Class Constructor
__construct
($name)
Redefined in descendants as:
Add a field validator
addValidation
($label, $validator, [$parameters = NULL])
-
$label: Field name
-
$validator: TFieldValidator object
-
$parameters: Aditional parameters
Returns the element content as a string
getContents
()
Returns if the field is editable
getEditable
()
Return the name of the form to wich the field is attached
getFormName
()
Returns the field's id
getId
()
Returns the field's label
getLabel
()
Redefined in descendants as:
Returns the field's name
getName
()
Return the post data
getPostData
()
Redefined in descendants as:
Get properties as string
getPropertiesAsString
([$filter = null])
Return a field property
getProperty
($name, 1)
-
1: Property Value
-
$name: Property Name
Redefined in descendants as:
Returns the field size
getSize
()
Redefined in descendants as:
Returns field validations
getValidations
()
Returns the field's value
getValue
()
Redefined in descendants as:
Returns if the field is required
isRequired
()
Define if the field is editable
setEditable
($editable)
Define the name of the form to wich the field is attached
setFormName
($name)
-
$name: A string containing the name of the form
Define the field's id
setId
($id)
-
$id: A string containing the field's id
Define the field's label
setLabel
($label)
-
$label: A string containing the field's label
Redefined in descendants as:
Define the field's name
setName
($name)
-
$name: A string containing the field's name
Define a field property
setProperty
($name, $value, [$replace = TRUE])
-
$name: Property Name
-
$value: Property Value
-
$replace
Redefined in descendants as:
Define the Field's width
setSize
($width, [$height = NULL])
-
$width: Field's width in pixels
-
$height
Redefined in descendants as:
Define the field's tooltip
setTip
($tip)
-
$tip: A string containing the field's tooltip
Define the field's value
setValue
($value)
-
$value: A string containing the field's value
Redefined in descendants as:
Set callback for setValue method
setValueCallback
($callback)
Validate a field
validate
()
Redirects function call
__call
($method, $param)
-
$method: Method name
-
$param: Array of parameters
Clone the object
__clone
()
Redefined in descendants as:
Returns a property value
__get
($name)
Redefined in descendants as:
Returns if the property is set
__isset
($name)
Intercepts whenever someones assign a new property's value
__set
($name, $value)
-
$name: Property Name
-
$value: Property Value
Converts the object into a string
__toString
()