ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Filter service. More...
Public Member Functions | |
__construct (ilUIService $service, ilUIServiceDependencies $deps) | |
Constructor. More... | |
standard (string $filter_id, string $base_action, array $inputs, array $is_input_initially_rendered, bool $is_activated=false, bool $is_expanded=false) | |
Get standard filter instance. More... | |
getData (Filter\Standard $filter) | |
Get data. More... | |
Data Fields | |
const | CMD_TOGGLE_ON = "toggleOn" |
const | CMD_TOGGLE_OFF = "toggleOff" |
const | CMD_EXPAND = "expand" |
const | CMD_COLLAPSE = "collapse" |
const | CMD_APPLY = "apply" |
const | CMD_RESET = "reset" |
Protected Member Functions | |
writeFilterStatusToSession ($filter_id, $inputs) | |
Write filter status to session (filter activated/expanded, inputs being rendered or not) More... | |
handleRendering ($filter_id, $inputs) | |
Handle rendering of inputs to session. More... | |
handleReset (string $filter_id) | |
Handle reset command. More... | |
handleApplyAndToggle (string $filter_id, Filter\Standard $filter) | |
Handle apply and toggle commands. More... | |
Protected Attributes | |
$service | |
$ui | |
$session | |
$request | |
Filter service.
Wraps around KS filter container.
Definition at line 15 of file class.ilUIFilterService.php.
ilUIFilterService::__construct | ( | ilUIService | $service, |
ilUIServiceDependencies | $deps | ||
) |
Constructor.
ilUIService | $service | |
ilUIServiceDependencies | $deps |
Definition at line 51 of file class.ilUIFilterService.php.
References $service, ilUIServiceDependencies\getRequest(), ilUIServiceDependencies\getSession(), ui(), and ilUIServiceDependencies\ui().
ilUIFilterService::getData | ( | Filter\Standard | $filter | ) |
Get data.
Filter\Standard | $filter |
Definition at line 145 of file class.ilUIFilterService.php.
References $i.
|
protected |
Handle apply and toggle commands.
string | $filter_id | |
Filter\Standard | $filter |
Definition at line 225 of file class.ilUIFilterService.php.
Referenced by standard().
|
protected |
Handle rendering of inputs to session.
string | $filter_id | |
array | $inputs |
Definition at line 193 of file class.ilUIFilterService.php.
References $i.
Referenced by writeFilterStatusToSession().
|
protected |
Handle reset command.
string | $filter_id |
Definition at line 209 of file class.ilUIFilterService.php.
Referenced by standard().
ilUIFilterService::standard | ( | string | $filter_id, |
string | $base_action, | ||
array | $inputs, | ||
array | $is_input_initially_rendered, | ||
bool | $is_activated = false , |
||
bool | $is_expanded = false |
||
) |
Get standard filter instance.
string | $filter_id | |
string | $base_action | |
FilterInput[] | $inputs | |
bool[] | $is_input_initially_rendered | |
bool | $is_activated | |
bool | $is_expanded |
Definition at line 71 of file class.ilUIFilterService.php.
References Vendor\Package\$e, $i, $ui, handleApplyAndToggle(), handleReset(), ui(), and writeFilterStatusToSession().
|
protected |
Write filter status to session (filter activated/expanded, inputs being rendered or not)
string | $filter_id | |
array | $inputs |
Definition at line 161 of file class.ilUIFilterService.php.
References handleRendering().
Referenced by standard().
|
protected |
Definition at line 44 of file class.ilUIFilterService.php.
|
protected |
Definition at line 29 of file class.ilUIFilterService.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file class.ilUIFilterService.php.
|
protected |
Definition at line 34 of file class.ilUIFilterService.php.
Referenced by standard().
const ilUIFilterService::CMD_APPLY = "apply" |
Definition at line 22 of file class.ilUIFilterService.php.
const ilUIFilterService::CMD_COLLAPSE = "collapse" |
Definition at line 21 of file class.ilUIFilterService.php.
const ilUIFilterService::CMD_EXPAND = "expand" |
Definition at line 20 of file class.ilUIFilterService.php.
const ilUIFilterService::CMD_RESET = "reset" |
Definition at line 23 of file class.ilUIFilterService.php.
const ilUIFilterService::CMD_TOGGLE_OFF = "toggleOff" |
Definition at line 19 of file class.ilUIFilterService.php.
const ilUIFilterService::CMD_TOGGLE_ON = "toggleOn" |
Definition at line 18 of file class.ilUIFilterService.php.