TDataGridColumn
in package
Representes a DataGrid column
Tags
Table of Contents
Properties
- $action : mixed
- $align : mixed
- $dataProperties : mixed
- $editaction : mixed
- $htmlConversion : mixed
- $inputSearch : mixed
- $label : mixed
- $name : mixed
- $properties : mixed
- $searchable : mixed
- $totalCallback : mixed
- $totalFunction : mixed
- $totalMask : mixed
- $totalTransformed : mixed
- $transformer : mixed
- $width : mixed
Methods
- __construct() : mixed
- Class Constructor
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- disableHtmlConversion() : mixed
- Disable htmlspecialchars on output
- enableAutoHide() : mixed
- Enable column auto hide
- enableHtmlConversion() : mixed
- Enable htmlspecialchars on output
- enableSearch() : mixed
- Enable column search
- enableTotal() : mixed
- Enable total
- getAction() : the
- Returns the action defined by set_action() method
- getAlign() : mixed
- Returns the column's align
- getDataProperties() : mixed
- Return data properties
- getDataProperty() : mixed
- Return a data property
- getEditAction() : the
- Returns the action defined by setEditAction() method
- getInputSearch() : mixed
- Get input search
- getLabel() : mixed
- Returns the column's label
- getName() : mixed
- Returns the database column's name
- getProperties() : mixed
- Return column properties
- getProperty() : mixed
- Return a column property
- getTotalCallback() : mixed
- Returns the callback defined by the setTotalFunction()
- getTotalFunction() : mixed
- Returns total function
- getTotalMask() : mixed
- Returns total mask
- getTransformer() : mixed
- Returns the callback defined by the setTransformer()
- getWidth() : mixed
- Returns the column's width
- hasHtmlConversionEnabled() : mixed
- return if has html conversion
- isSearchable() : mixed
- Returns if column is searchable
- removeAction() : mixed
- Remove action
- setAction() : mixed
- Define the action to be executed when the user clicks over the column header
- setDataProperty() : mixed
- Define a data property
- setEditAction() : mixed
- Define the action to be executed when the user clicks do edit the column
- setLabel() : mixed
- Set the column's label
- setProperty() : mixed
- Define a column header property
- setTotalFunction() : mixed
- Define a callback function to totalize column
- setTransformer() : mixed
- Define a callback function to be applyed over the column's data
- setVisibility() : mixed
- Define column visibility
- totalTransformed() : mixed
- Is total transformed
Properties
$action
private
mixed
$action
$align
private
mixed
$align
$dataProperties
private
mixed
$dataProperties
$editaction
private
mixed
$editaction
$htmlConversion
private
mixed
$htmlConversion
$inputSearch
private
mixed
$inputSearch
$label
private
mixed
$label
$name
private
mixed
$name
$properties
private
mixed
$properties
$searchable
private
mixed
$searchable
$totalCallback
private
mixed
$totalCallback
$totalFunction
private
mixed
$totalFunction
$totalMask
private
mixed
$totalMask
$totalTransformed
private
mixed
$totalTransformed
$transformer
private
mixed
$transformer
$width
private
mixed
$width
Methods
__construct()
Class Constructor
public
__construct( $name, $label, $align[, $width = NULL ]) : mixed
Parameters
__set()
Intercepts whenever someones assign a new property's value
public
__set( $name, $value) : mixed
Parameters
disableHtmlConversion()
Disable htmlspecialchars on output
public
disableHtmlConversion() : mixed
enableAutoHide()
Enable column auto hide
public
enableAutoHide(mixed $width) : mixed
Parameters
- $width : mixed
enableHtmlConversion()
Enable htmlspecialchars on output
public
enableHtmlConversion() : mixed
enableSearch()
Enable column search
public
enableSearch() : mixed
enableTotal()
Enable total
public
enableTotal(mixed $function[, mixed $prefix = null ][, mixed $decimals = 2 ][, mixed $decimal_separator = ',' ][, mixed $thousand_separator = '.' ]) : mixed
Parameters
- $function : mixed
- $prefix : mixed = null
- $decimals : mixed = 2
- $decimal_separator : mixed = ','
- $thousand_separator : mixed = '.'
getAction()
Returns the action defined by set_action() method
public
getAction() : the
Return values
the —action to be executed when the user clicks over the column header
getAlign()
Returns the column's align
public
getAlign() : mixed
getDataProperties()
Return data properties
public
getDataProperties() : mixed
getDataProperty()
Return a data property
public
getDataProperty( $name) : mixed
Parameters
getEditAction()
Returns the action defined by setEditAction() method
public
getEditAction() : the
Return values
the —action to be executed when the user clicks do edit the column
getInputSearch()
Get input search
public
getInputSearch() : mixed
getLabel()
Returns the column's label
public
getLabel() : mixed
getName()
Returns the database column's name
public
getName() : mixed
getProperties()
Return column properties
public
getProperties() : mixed
getProperty()
Return a column property
public
getProperty( $name) : mixed
Parameters
getTotalCallback()
Returns the callback defined by the setTotalFunction()
public
getTotalCallback() : mixed
getTotalFunction()
Returns total function
public
getTotalFunction() : mixed
getTotalMask()
Returns total mask
public
getTotalMask() : mixed
getTransformer()
Returns the callback defined by the setTransformer()
public
getTransformer() : mixed
getWidth()
Returns the column's width
public
getWidth() : mixed
hasHtmlConversionEnabled()
return if has html conversion
public
hasHtmlConversionEnabled() : mixed
isSearchable()
Returns if column is searchable
public
isSearchable() : mixed
removeAction()
Remove action
public
removeAction() : mixed
setAction()
Define the action to be executed when the user clicks over the column header
public
setAction( $action[, $parameters = null ]) : mixed
Parameters
setDataProperty()
Define a data property
public
setDataProperty( $name, $value) : mixed
Parameters
setEditAction()
Define the action to be executed when the user clicks do edit the column
public
setEditAction(TDataGridAction $editaction) : mixed
Parameters
- $editaction : TDataGridAction
setLabel()
Set the column's label
public
setLabel( $label) : mixed
Parameters
setProperty()
Define a column header property
public
setProperty( $name, $value) : mixed
Parameters
setTotalFunction()
Define a callback function to totalize column
public
setTotalFunction( $callback[, $apply_transformer = true ]) : mixed
Parameters
setTransformer()
Define a callback function to be applyed over the column's data
public
setTransformer( $callback) : mixed
Parameters
setVisibility()
Define column visibility
public
setVisibility(mixed $bool) : mixed
Parameters
- $bool : mixed
totalTransformed()
Is total transformed
public
totalTransformed() : mixed