TDataGridAction
extends TAction
in package
Represents an action inside a datagrid
Tags
Table of Contents
Properties
- $action : mixed
- $param : mixed
- $properties : mixed
- $buttonClass : mixed
- $displayCondition : mixed
- $field : mixed
- $fields : mixed
- $image : mixed
- $label : mixed
- $useButton : mixed
Methods
- __construct() : mixed
- Class Constructor
- cloneWithParameters() : mixed
- fieldDefined() : mixed
- Return if there at least one field defined
- getAction() : mixed
- Returns the current calback
- getButtonClass() : mixed
- Returns the buttonClass
- getDisplayCondition() : mixed
- Returns the action display condition
- getField() : mixed
- Returns the Active Record's property that will be passed along with the action
- getFieldParameters() : mixed
- Return fields used in parameters
- getFields() : mixed
- Returns the Active Record's properties that will be passed along with the action
- getImage() : mixed
- Returns the icon of the action
- getLabel() : mixed
- Returns the text label for the action
- getParameter() : mixed
- Returns a parameter
- getParameters() : mixed
- Return the Action Parameters
- getProperty() : mixed
- Get property
- getUseButton() : mixed
- Returns if the action will use a regular button
- isStatic() : mixed
- Returns if the action is static
- prepare() : mixed
- Prepare action for use over an object
- preserveRequestParameters() : mixed
- Keep REQUEST parameters
- serialize() : mixed
- Converts the action into an URL
- setButtonClass() : mixed
- define the buttonClass for the action
- setDisplayCondition() : mixed
- Define a callback that must be valid to show the action
- setField() : mixed
- Define wich Active Record's property will be passed along with the action
- setFields() : mixed
- Define wich Active Record's properties will be passed along with the action
- setImage() : mixed
- Define an icon for the action
- setLabel() : mixed
- define the label for the action
- setParameter() : mixed
- Adds a parameter to the action
- setParameters() : mixed
- Set the parameters for the action
- setProperty() : mixed
- Set property
- setUseButton() : mixed
- define if the action will use a regular button
- toString() : mixed
- Returns the action as a string
- validate() : mixed
- Validate action
- replace() : mixed
- Replace a string with object properties within {pattern}
Properties
$action
protected
mixed
$action
$param
protected
mixed
$param
$properties
protected
mixed
$properties
$buttonClass
private
mixed
$buttonClass
$displayCondition
private
mixed
$displayCondition
$field
private
mixed
$field
$fields
private
mixed
$fields
$image
private
mixed
$image
$label
private
mixed
$label
$useButton
private
mixed
$useButton
Methods
__construct()
Class Constructor
public
__construct( $action[, $parameters = null ]) : mixed
Parameters
cloneWithParameters()
public
cloneWithParameters([mixed $parameters = [] ]) : mixed
Parameters
- $parameters : mixed = []
fieldDefined()
Return if there at least one field defined
public
fieldDefined() : mixed
getAction()
Returns the current calback
public
getAction() : mixed
getButtonClass()
Returns the buttonClass
public
getButtonClass() : mixed
getDisplayCondition()
Returns the action display condition
public
getDisplayCondition() : mixed
getField()
Returns the Active Record's property that will be passed along with the action
public
getField() : mixed
getFieldParameters()
Return fields used in parameters
public
getFieldParameters() : mixed
getFields()
Returns the Active Record's properties that will be passed along with the action
public
getFields() : mixed
getImage()
Returns the icon of the action
public
getImage() : mixed
getLabel()
Returns the text label for the action
public
getLabel() : mixed
getParameter()
Returns a parameter
public
getParameter( $param) : mixed
Parameters
getParameters()
Return the Action Parameters
public
getParameters() : mixed
getProperty()
Get property
public
getProperty(mixed $property) : mixed
Parameters
- $property : mixed
getUseButton()
Returns if the action will use a regular button
public
getUseButton() : mixed
isStatic()
Returns if the action is static
public
isStatic() : mixed
prepare()
Prepare action for use over an object
public
prepare( $object) : mixed
Parameters
preserveRequestParameters()
Keep REQUEST parameters
public
preserveRequestParameters([mixed $request_parameters = [] ]) : mixed
Parameters
- $request_parameters : mixed = []
serialize()
Converts the action into an URL
public
serialize([ $format_action = TRUE ][, mixed $check_permission = FALSE ]) : mixed
Parameters
setButtonClass()
define the buttonClass for the action
public
setButtonClass( $buttonClass) : mixed
Parameters
setDisplayCondition()
Define a callback that must be valid to show the action
public
setDisplayCondition(callable $displayCondition) : mixed
Parameters
- $displayCondition : callable
-
Action display condition
setField()
Define wich Active Record's property will be passed along with the action
public
setField( $field) : mixed
Parameters
setFields()
Define wich Active Record's properties will be passed along with the action
public
setFields(mixed $fields) : mixed
Parameters
- $fields : mixed
setImage()
Define an icon for the action
public
setImage( $image) : mixed
Parameters
setLabel()
define the label for the action
public
setLabel( $label) : mixed
Parameters
setParameter()
Adds a parameter to the action
public
setParameter( $param, $value) : mixed
Parameters
setParameters()
Set the parameters for the action
public
setParameters( $parameters) : mixed
Parameters
setProperty()
Set property
public
setProperty(mixed $property, mixed $value) : mixed
Parameters
- $property : mixed
- $value : mixed
setUseButton()
define if the action will use a regular button
public
setUseButton( $useButton) : mixed
Parameters
toString()
Returns the action as a string
public
toString() : mixed
validate()
Validate action
public
validate() : mixed
replace()
Replace a string with object properties within {pattern}
private
replace( $content, $object) : mixed