AdiantiStandardCollectionTrait
Standard Collection Trait
Tags
Table of Contents
Properties
- $afterLoadCallback : mixed
- $afterSearchCallback : mixed
- $criteria : mixed
- $direction : mixed
- $filterFields : mixed
- $filterTransformers : mixed
- $formFilters : mixed
- $limit : mixed
- $loaded : mixed
- $logic_operators : mixed
- $operators : mixed
- $order : mixed
- $orderCommands : mixed
- $transformCallback : mixed
Methods
- addFilterField() : mixed
- method addFilterField() Add a field that will be used for filtering
- clearFilters() : mixed
- clear Filters
- Delete() : mixed
- Delete a record
- onDelete() : mixed
- Ask before deletion
- onReload() : mixed
- Load the datagrid with the database objects
- onSearch() : mixed
- Register the filter in the session
- setAfterLoadCallback() : mixed
- Define a callback method to transform objects before load them into datagrid
- setAfterSearchCallback() : mixed
- Define a callback method to transform objects after search action
- setCollectionObject() : mixed
- Set list widget
- setCriteria() : mixed
- method setCriteria() Define the criteria
- setDefaultOrder() : mixed
- Define the default order
- setFilterField() : mixed
- method setFilterField() Define wich field will be used for filtering PS: Just for Backwards compatibility
- setLimit() : mixed
- method setLimit() Define the record limit
- setOperator() : mixed
- method setOperator() Define the filtering operator PS: Just for Backwards compatibility
- setOrderCommand() : mixed
- Set order command
- setTransformer() : mixed
- Define a callback method to transform objects before load them into datagrid
- show() : mixed
- method show() Shows the page
Properties
$afterLoadCallback
protected
mixed
$afterLoadCallback
$afterSearchCallback
protected
mixed
$afterSearchCallback
$criteria
protected
mixed
$criteria
$direction
protected
mixed
$direction
$filterFields
protected
mixed
$filterFields
$filterTransformers
protected
mixed
$filterTransformers
$formFilters
protected
mixed
$formFilters
$limit
protected
mixed
$limit
$loaded
protected
mixed
$loaded
$logic_operators
protected
mixed
$logic_operators
$operators
protected
mixed
$operators
$order
protected
mixed
$order
$orderCommands
protected
mixed
$orderCommands
$transformCallback
protected
mixed
$transformCallback
Methods
addFilterField()
method addFilterField() Add a field that will be used for filtering
public
addFilterField( $filterField[, $operator = 'like' ][, mixed $formFilter = NULL ][, mixed $filterTransformer = NULL ][, mixed $logic_operator = TExpression::AND_OPERATOR ]) : mixed
Parameters
clearFilters()
clear Filters
public
clearFilters() : mixed
Delete()
Delete a record
public
Delete(mixed $param) : mixed
Parameters
- $param : mixed
onDelete()
Ask before deletion
public
onDelete(mixed $param) : mixed
Parameters
- $param : mixed
onReload()
Load the datagrid with the database objects
public
onReload([mixed $param = NULL ]) : mixed
Parameters
- $param : mixed = NULL
onSearch()
Register the filter in the session
public
onSearch([mixed $param = null ]) : mixed
Parameters
- $param : mixed = null
setAfterLoadCallback()
Define a callback method to transform objects before load them into datagrid
public
setAfterLoadCallback(mixed $callback) : mixed
Parameters
- $callback : mixed
setAfterSearchCallback()
Define a callback method to transform objects after search action
public
setAfterSearchCallback(mixed $callback) : mixed
Parameters
- $callback : mixed
setCollectionObject()
Set list widget
public
setCollectionObject(mixed $object) : mixed
Parameters
- $object : mixed
setCriteria()
method setCriteria() Define the criteria
public
setCriteria(mixed $criteria) : mixed
Parameters
- $criteria : mixed
setDefaultOrder()
Define the default order
public
setDefaultOrder( $order[, mixed $direction = 'asc' ]) : mixed
Parameters
setFilterField()
method setFilterField() Define wich field will be used for filtering PS: Just for Backwards compatibility
public
setFilterField(mixed $filterField) : mixed
Parameters
- $filterField : mixed
setLimit()
method setLimit() Define the record limit
public
setLimit(mixed $limit) : mixed
Parameters
- $limit : mixed
setOperator()
method setOperator() Define the filtering operator PS: Just for Backwards compatibility
public
setOperator(mixed $operator) : mixed
Parameters
- $operator : mixed
setOrderCommand()
Set order command
public
setOrderCommand(mixed $order_column, mixed $order_command) : mixed
Parameters
- $order_column : mixed
- $order_command : mixed
setTransformer()
Define a callback method to transform objects before load them into datagrid
public
setTransformer(mixed $callback) : mixed
Parameters
- $callback : mixed
show()
method show() Shows the page
public
show() : mixed