class Dictionary (View source)

Dictionary class

Methods

static array
get_active($dict_table, $key_field = 'rowid', $value_field = 'label', $sort_field = 'label', $sort_order = 'ASC')

Returns dictionary active lines list

static array
get_all($dict_table, $key_field = 'rowid', $value_field = 'label', $sort_field = 'label', $sort_order = 'ASC')

Returns dictionary all lines list

Details

static array get_active($dict_table, $key_field = 'rowid', $value_field = 'label', $sort_field = 'label', $sort_order = 'ASC')

Returns dictionary active lines list

Parameters

$dict_table dictionary table name (without prefix)
$key_field list key field, e.: 'rowid'
$value_field list value field, e.: 'label'
$sort_field list sort field, e.: 'label'
$sort_order list sort order, e.: 'DESC' or 'ASC'

Return Value

array dictionary active lines list

static array get_all($dict_table, $key_field = 'rowid', $value_field = 'label', $sort_field = 'label', $sort_order = 'ASC')

Returns dictionary all lines list

Parameters

$dict_table dictionary table name (without prefix)
$key_field list key field, e.: 'rowid'
$value_field list value field, e.: 'label'
$sort_field list sort field, e.: 'label'
$sort_order list sort order, e.: 'DESC' or 'ASC'

Return Value

array dictionary all lines list