Class Constructor
__construct
($action, [$parameters = null])
-
$action: Callback to be executed
-
$parameters: = array of parameters
Redefinition of:
- TAction::__construct()
- Class Constructor
Return if there at least one field defined
fieldDefined
()
Returns the buttonClass
getButtonClass
()
Returns the action display condition
getDisplayCondition
()
Returns the Active Record's property that
will be passed along with the action
getField
()
Returns the Active Record's properties that
will be passed along with the action
getFields
()
Returns the icon of the action
getImage
()
Returns the text label for the action
getLabel
()
Returns if the action will use a regular button
getUseButton
()
Prepare action for use over an object
prepare
($object)
Redefinition of:
- TAction::prepare()
- Prepare action for use over an object
Converts the action into an URL
serialize
([$format_action = TRUE])
-
$format_action: = format action with document or javascript (ajax=no)
Redefinition of:
- TAction::serialize()
- Converts the action into an URL
define the buttonClass for the action
setButtonClass
($buttonClass)
-
$buttonClass: A string containing the button css class
Define a callback that must be valid to show the action
setDisplayCondition
($displayCondition)
-
$displayCondition: Action display condition
Define wich Active Record's property will be passed along with the action
setField
($field)
-
$field: Active Record's property
Define wich Active Record's properties will be passed along with the action
setFields
($fields)
-
$fields: Active Record's property
Define an icon for the action
setImage
($image)
define the label for the action
setLabel
($label)
-
$label: A string containing a text label
define if the action will use a regular button
setUseButton
($useButton)
Inherited Methods
Inherited From TAction
TAction::__construct()
TAction::getAction()
TAction::getFieldParameters()
TAction::getParameter()
TAction::getParameters()
TAction::getProperty()
TAction::isStatic()
TAction::prepare()
TAction::serialize()
TAction::setParameter()
TAction::setParameters()
TAction::setProperty()
TAction::toString()
TAction::validate()