Class ItemList
This class is used to generate and display smart lists, getting data from the database or a given array
- Hawk\ItemList uses Hawk\Utils
Methods summary
public
|
|
public
array
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
Methods used from Hawk\Utils
Constants summary
string |
DEFAULT_MODEL
|
#
'\StdClass'
|
string |
ALL_LINES
|
#
'all'
|
integer |
DEFAULT_LINE_CHOICE
|
#
20
|
Properties summary
public static
array
|
$lineChoice
The possible choices for the number of lines to display |
#
array(10, 20, 50, 100)
|
public
string
|
$id
The list id |
|
public
array
|
$controls
The list control buttons |
#
array()
|
public
array
|
$fields
The list fields. This corresponds to the properties of each column in the list |
#
array()
|
public
array
|
$searches
The user researches in the list |
#
array()
|
public
array
|
$sorts
The user sorts |
#
array()
|
public
array
|
$binds
The binded values for the SQL queries |
#
array()
|
public
integer
|
$lines
The number of lines to display |
|
public
integer
|
$page
The page number to display |
#
1
|
public
string
|
$action
The URI called to refresh the list |
|
public
string
|
$model
The model used to get the data in the database |
|
public
string
|
$table
The table where to get the data if "model" is not set |
|
public
string
|
$reference
The default reference field, used to index the list result table |
|
public
string
|
$filter
The list filter |
|
public
string
|
$dbname
The default db instance name |
#
MAINDB
|
public
array
|
$data
The raw data to display in the list (overrides table, model, dbname and reference properties) |
#
null
|
public
array
|
$group
The fields group in the search query |
#
array()
|
public
mixed
|
$selected
The id of the selected line |
#
null
|
public
string|function
|
$lineClass
The class to apply to the list lines |
#
null
|
public
boolean
|
$navigation
Defines if the navigation bar of the list must be displayed |
#
true
|
public
boolean
|
$noHeader
If set to true, the columns headers are not displayed |
#
false
|
public
string
|
$target
If not empty, define the CSS selector of the node where to display the list refreshing result |
#
''
|
public
string
|
$emptyMessage
Define the message to display if no result are found for the list |
|
public
string
|
$tpl
The whole list (list + navigation bar) view filename |
|
public
string
|
$navigationBarTpl
The navigation bar view filename |
|
public
string
|
$listTpl
The list view filename |
|
public
string
|
$resultTpl
The result view filename |