TButton
extends TField
in package
implements
AdiantiWidgetInterface
Button 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
- $action : mixed
- $functions : mixed
- $image : mixed
- $tagName : 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
- addFunction() : mixed
- Add a JavaScript function to be executed by the button
- addStyleClass() : mixed
- Add CSS class
- addValidation() : mixed
- Add a field validator
- clearField() : mixed
- Clear the field
- create() : mixed
- Create a button with icon and action
- disableField() : mixed
- Disable the field
- enableField() : mixed
- Enable the field
- getAction() : mixed
- Returns the buttona action
- 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 button label
- getName() : mixed
- Returns the field's name
- getPostData() : mixed
- Return the post data
- getPropertiesAsString() : mixed
- Get properties as string
- getProperty() : mixed
- Return field property
- getSize() : mixed
- Returns the field size
- getValidations() : mixed
- Returns field validations
- getValue() : mixed
- Returns the field's value
- isRequired() : mixed
- Returns if the field is required
- setAction() : mixed
- Define the action of the button
- setEditable() : mixed
- Define if the field is editable
- setFormName() : mixed
- Define the name of the form to wich the field is attached
- setId() : mixed
- Define the field's id
- setImage() : mixed
- Define the icon of the button
- setLabel() : mixed
- Define the label of the button
- setName() : mixed
- Define the field's name
- setProperty() : mixed
- Define a field property
- setSize() : mixed
- Define the Field's width
- setTagName() : mixed
- Define the tag name
- setTip() : mixed
- Define the field's tooltip
- setValue() : mixed
- Define the field's value
- setValueCallback() : mixed
- Set callback for setValue method
- show() : mixed
- Show 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
$action
private
mixed
$action
$functions
private
mixed
$functions
$image
private
mixed
$image
$tagName
private
mixed
$tagName
$validations
private
mixed
$validations
Methods
__call()
Redirects function call
public
__call( $method, $param) : mixed
Parameters
__clone()
Clone the object
public
__clone() : mixed
__construct()
Class Constructor
public
__construct( $name) : mixed
Parameters
__get()
Returns a property value
public
__get( $name) : mixed
Parameters
__isset()
Returns if the property is set
public
__isset( $name) : mixed
Parameters
__set()
Intercepts whenever someones assign a new property's value
public
__set( $name, $value) : mixed
Parameters
__toString()
Converts the object into a string
public
__toString() : mixed
addFunction()
Add a JavaScript function to be executed by the button
public
addFunction( $function) : mixed
Parameters
Tags
addStyleClass()
Add CSS class
public
addStyleClass(mixed $class) : mixed
Parameters
- $class : mixed
addValidation()
Add a field validator
public
addValidation( $label, $validator[, $parameters = NULL ]) : mixed
Parameters
clearField()
Clear the field
public
static clearField( $form_name, $field) : mixed
Parameters
create()
Create a button with icon and action
public
static create(mixed $name, mixed $callback, mixed $label, mixed $image) : mixed
Parameters
- $name : mixed
- $callback : mixed
- $label : mixed
- $image : mixed
disableField()
Disable the field
public
static disableField( $form_name, $field) : mixed
Parameters
enableField()
Enable the field
public
static enableField( $form_name, $field) : mixed
Parameters
getAction()
Returns the buttona action
public
getAction() : mixed
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 button 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 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()
Returns the field's value
public
getValue() : mixed
isRequired()
Returns if the field is required
public
isRequired() : mixed
setAction()
Define the action of the button
public
setAction( $action[, $label = NULL ]) : mixed
Parameters
setEditable()
Define if the field is editable
public
setEditable( $editable) : mixed
Parameters
setFormName()
Define the name of the form to wich the field is attached
public
setFormName( $name) : mixed
Parameters
Tags
setId()
Define the field's id
public
setId( $id) : mixed
Parameters
setImage()
Define the icon of the button
public
setImage( $image) : mixed
Parameters
setLabel()
Define the label of the button
public
setLabel( $label) : mixed
Parameters
setName()
Define the field's name
public
setName( $name) : mixed
Parameters
setProperty()
Define a field property
public
setProperty( $name, $value[, mixed $replace = TRUE ]) : mixed
Parameters
setSize()
Define the Field's width
public
setSize( $width[, mixed $height = NULL ]) : mixed
Parameters
setTagName()
Define the tag name
public
setTagName(mixed $name) : mixed
Parameters
- $name : mixed
-
tag name
setTip()
Define the field's tooltip
public
setTip(mixed $tip) : mixed
Parameters
- $tip : mixed
setValue()
Define the field's value
public
setValue( $value) : mixed
Parameters
setValueCallback()
Set callback for setValue method
public
setValueCallback(mixed $callback) : mixed
Parameters
- $callback : mixed
show()
Show the widget at the screen
public
show() : mixed
validate()
Validate a field
public
validate() : mixed