TLabel
extends TField
in package
implements
AdiantiWidgetInterface
Label Widget
Tags
Table of Contents
Interfaces
- AdiantiWidgetInterface
- Widget Interface
Properties
- $editable : mixed
- $formName : mixed
- $id : mixed
- $label : mixed
- $name : mixed
- $properties : mixed
- $size : mixed
- $tag : mixed
- $value : mixed
- $valueCallback : mixed
- $embedStyle : mixed
- $fontStyle : mixed
- $toggleVisibility : mixed
- $validations : mixed
Methods
- __call() : mixed
- Redirects function call
- __clone() : mixed
- Clone the object
- __construct() : mixed
- Class Constructor
- __get() : mixed
- Returns a property value
- __isset() : mixed
- Returns if the property is set
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- __toString() : mixed
- Converts the object into a string
- add() : mixed
- Add a content inside the label
- addValidation() : mixed
- Add a field validator
- clearField() : mixed
- Clear the field
- disableField() : mixed
- Disable the field
- enableField() : mixed
- Enable the field
- enableToggleVisibility() : mixed
- Enable toggle visible
- getContents() : mixed
- Returns the element content as a string
- getEditable() : A
- Returns if the field is editable
- getFormName() : mixed
- Return the name of the form to wich the field is attached
- getId() : mixed
- Returns the field's id
- getLabel() : mixed
- Returns the field's label
- getName() : mixed
- Returns the field's name
- getPostData() : mixed
- Return the post data
- getPropertiesAsString() : mixed
- Get properties as string
- getProperty() : mixed
- Return a field property
- getSize() : mixed
- Returns the field size
- getValidations() : mixed
- Returns field validations
- getValue() : mixed
- Get value
- isRequired() : mixed
- Returns if the field is required
- setEditable() : mixed
- Define if the field is editable
- setFontColor() : mixed
- Define the font color
- setFontFace() : mixed
- Define the font face
- setFontSize() : mixed
- Define the font size
- setFontStyle() : mixed
- Define the style
- setFormName() : mixed
- Define the name of the form to wich the field is attached
- setId() : mixed
- Define the field's id
- setLabel() : mixed
- Define the field's label
- setName() : mixed
- Define the field's name
- setProperty() : mixed
- Define a field property
- setSize() : mixed
- Define the Field's width
- setTagName() : mixed
- Change input tag name
- setTextAlign() : mixed
- Define the text align
- setTip() : mixed
- Define the field's tooltip
- setValue() : mixed
- Define the field's value
- setValueCallback() : mixed
- Set callback for setValue method
- show() : mixed
- Shows the widget at the screen
- validate() : mixed
- Validate a field
Properties
$editable
protected
mixed
$editable
$formName
protected
mixed
$formName
$id
protected
mixed
$id
$label
protected
mixed
$label
$name
protected
mixed
$name
$properties
protected
mixed
$properties
$size
protected
mixed
$size
$tag
protected
mixed
$tag
$value
protected
mixed
$value
$valueCallback
protected
mixed
$valueCallback
$embedStyle
private
mixed
$embedStyle
$fontStyle
private
mixed
$fontStyle
$toggleVisibility
private
mixed
$toggleVisibility
$validations
private
mixed
$validations
Methods
__call()
Redirects function call
public
__call(mixed $method, mixed $param) : mixed
Parameters
- $method : mixed
-
Method name
- $param : mixed
-
Array of parameters
__clone()
Clone the object
public
__clone() : mixed
__construct()
Class Constructor
public
__construct(mixed $value[, mixed $color = null ][, mixed $fontsize = null ][, mixed $decoration = null ][, mixed $size = null ]) : mixed
Parameters
- $value : mixed
-
text label
- $color : mixed = null
- $fontsize : mixed = null
- $decoration : mixed = null
- $size : mixed = null
__get()
Returns a property value
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
__isset()
Returns if the property is set
public
__isset(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
__set()
Intercepts whenever someones assign a new property's value
public
__set(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
-
Property Name
- $value : mixed
-
Property Value
__toString()
Converts the object into a string
public
__toString() : mixed
add()
Add a content inside the label
public
add(mixed $content) : mixed
Parameters
- $content : mixed
addValidation()
Add a field validator
public
addValidation(mixed $label, mixed $validator[, mixed $parameters = NULL ]) : mixed
Parameters
- $label : mixed
-
Field name
- $validator : mixed
-
TFieldValidator object
- $parameters : mixed = NULL
-
Aditional parameters
clearField()
Clear the field
public
static clearField(mixed $form_name, mixed $field) : mixed
Parameters
- $form_name : mixed
-
Form name
- $field : mixed
-
Field name
disableField()
Disable the field
public
static disableField(mixed $form_name, mixed $field) : mixed
Parameters
- $form_name : mixed
-
Form name
- $field : mixed
-
Field name
enableField()
Enable the field
public
static enableField(mixed $form_name, mixed $field) : mixed
Parameters
- $form_name : mixed
-
Form name
- $field : mixed
-
Field name
enableToggleVisibility()
Enable toggle visible
public
enableToggleVisibility([mixed $toggleVisibility = TRUE ]) : mixed
Parameters
- $toggleVisibility : mixed = TRUE
getContents()
Returns the element content as a string
public
getContents() : mixed
getEditable()
Returns if the field is editable
public
getEditable() : A
Return values
A —boolean
getFormName()
Return the name of the form to wich the field is attached
public
getFormName() : mixed
getId()
Returns the field's id
public
getId() : mixed
getLabel()
Returns the field's label
public
getLabel() : mixed
getName()
Returns the field's name
public
getName() : mixed
getPostData()
Return the post data
public
getPostData() : mixed
getPropertiesAsString()
Get properties as string
public
getPropertiesAsString([mixed $filter = null ]) : mixed
Parameters
- $filter : mixed = null
getProperty()
Return a field property
public
getProperty(mixed $name) : mixed
Parameters
- $name : mixed
-
Property Name
getSize()
Returns the field size
public
getSize() : mixed
getValidations()
Returns field validations
public
getValidations() : mixed
getValue()
Get value
public
getValue() : mixed
isRequired()
Returns if the field is required
public
isRequired() : mixed
setEditable()
Define if the field is editable
public
setEditable(mixed $editable) : mixed
Parameters
- $editable : mixed
-
A boolean
setFontColor()
Define the font color
public
setFontColor(mixed $color) : mixed
Parameters
- $color : mixed
-
Font Color
setFontFace()
Define the font face
public
setFontFace(mixed $font) : mixed
Parameters
- $font : mixed
-
Font Family Name
setFontSize()
Define the font size
public
setFontSize(mixed $size) : mixed
Parameters
- $size : mixed
-
Font size in pixels
setFontStyle()
Define the style
public
setFontStyle(mixed $decoration) : mixed
Parameters
- $decoration : mixed
-
text decorations (b=bold, i=italic, u=underline)
setFormName()
Define the name of the form to wich the field is attached
public
setFormName(mixed $name) : mixed
Parameters
- $name : mixed
-
A string containing the name of the form
Tags
setId()
Define the field's id
public
setId(mixed $id) : mixed
Parameters
- $id : mixed
-
A string containing the field's id
setLabel()
Define the field's label
public
setLabel(mixed $label) : mixed
Parameters
- $label : mixed
-
A string containing the field's label
setName()
Define the field's name
public
setName(mixed $name) : mixed
Parameters
- $name : mixed
-
A string containing the field's name
setProperty()
Define a field property
public
setProperty(mixed $name, mixed $value[, mixed $replace = TRUE ]) : mixed
Parameters
- $name : mixed
-
Property Name
- $value : mixed
-
Property Value
- $replace : mixed = TRUE
setSize()
Define the Field's width
public
setSize(mixed $width[, mixed $height = NULL ]) : mixed
Parameters
- $width : mixed
-
Field's width in pixels
- $height : mixed = NULL
setTagName()
Change input tag name
public
setTagName(mixed $name) : mixed
Parameters
- $name : mixed
setTextAlign()
Define the text align
public
setTextAlign(mixed $align) : mixed
Parameters
- $align : mixed
-
Text Align
setTip()
Define the field's tooltip
public
setTip(mixed $tip) : mixed
Parameters
- $tip : mixed
setValue()
Define the field's value
public
setValue(mixed $value) : mixed
Parameters
- $value : mixed
-
A string containing the field's value
setValueCallback()
Set callback for setValue method
public
setValueCallback(mixed $callback) : mixed
Parameters
- $callback : mixed
show()
Shows the widget at the screen
public
show() : mixed
validate()
Validate a field
public
validate() : mixed