API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

AdiantiStandardCollectionTrait

Standard Collection Trait

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

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

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
$filterField :

Field name

$operator : = 'like'

Comparison operator

$formFilter : mixed = NULL
$filterTransformer : mixed = NULL
$logic_operator : mixed = TExpression::AND_OPERATOR

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

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
$order :

The order field

$direction : mixed = 'asc'

setFilterField()

method setFilterField() Define wich field will be used for filtering PS: Just for Backwards compatibility

public setFilterField(mixed $filterField) : mixed
Parameters
$filterField : 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

        
On this page

Search results