|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilLSStateDB:Public Member Functions | |
| __construct (ilDBInterface $db) | |
| getStatesFor (int $lso_ref_id, array $usr_ids=[]) | |
| getCurrentItemsFor (int $lso_ref_id, array $usr_ids=[]) | |
| getFirstAccessFor (int $lso_ref_id, array $usr_ids=[]) | |
| getLastAccessFor (int $lso_ref_id, array $usr_ids=[]) | |
| updateState (int $lso_ref_id, int $usr_id, int $ref_id, ILIAS\KioskMode\State $state, int $current_item=null) | |
| update a single State (for the item with ref_id); if $current_item is not set, assume that $ref_id is the current one. More... | |
| deleteFor (int $lso_ref_id, array $usr_ids=[]) | |
| deleteForItem (int $lso_ref_id, int $item_ref_id) | |
Data Fields | |
| const | TABLE_NAME = 'lso_states' |
| const | CURRENT_ITEM_ID = "current_item" |
| const | STATES = "states" |
| const | FIRST_ACCESS = "first_access" |
| const | LAST_ACCESS = "last_access" |
Protected Member Functions | |
| entryExistsFor (int $lso_ref_id, int $usr_id) | |
| insert (int $lso_ref_id, int $usr_id) | |
| update (ilDBInterface $db, int $lso_ref_id, int $usr_id, int $current_item, string $serialized) | |
| buildStates (string $serialized) | |
| serializeStates (array $states) | |
| select (int $lso_ref_id, array $usr_ids=[]) | |
Protected Attributes | |
| ilDBInterface | $db |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Persistence for View-States
Definition at line 24 of file class.ilLSStateDB.php.
| ilLSStateDB::__construct | ( | ilDBInterface | $db | ) |
Definition at line 35 of file class.ilLSStateDB.php.
References $db.
|
protected |
Definition at line 234 of file class.ilLSStateDB.php.
References $data, ILIAS\LTI\ToolProvider\$key, and $ref_id.
| ilLSStateDB::deleteFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
| int[] | $usr_ids |
Definition at line 185 of file class.ilLSStateDB.php.
References $query.
| ilLSStateDB::deleteForItem | ( | int | $lso_ref_id, |
| int | $item_ref_id | ||
| ) |
Definition at line 199 of file class.ilLSStateDB.php.
|
protected |
Definition at line 144 of file class.ilLSStateDB.php.
| ilLSStateDB::getCurrentItemsFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 60 of file class.ilLSStateDB.php.
References $data, CURRENT_ITEM_ID, and select().
Here is the call graph for this function:| ilLSStateDB::getFirstAccessFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
| array<int> | $usr_ids |
Definition at line 78 of file class.ilLSStateDB.php.
References $data, FIRST_ACCESS, and select().
Here is the call graph for this function:| ilLSStateDB::getLastAccessFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
| int[] | $usr_ids |
Definition at line 96 of file class.ilLSStateDB.php.
References $data, LAST_ACCESS, and select().
Here is the call graph for this function:| ilLSStateDB::getStatesFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 43 of file class.ilLSStateDB.php.
References $data, select(), and STATES.
Here is the call graph for this function:
|
protected |
Definition at line 149 of file class.ilLSStateDB.php.
|
protected |
| int[] | $usr_ids |
Definition at line 273 of file class.ilLSStateDB.php.
References $query, and ILIAS\Repository\int().
Referenced by getCurrentItemsFor(), getFirstAccessFor(), getLastAccessFor(), and getStatesFor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| array | <int,ILIAS\KioskMode\State> ref_id=>State |
Definition at line 253 of file class.ilLSStateDB.php.
|
protected |
Definition at line 161 of file class.ilLSStateDB.php.
| ilLSStateDB::updateState | ( | int | $lso_ref_id, |
| int | $usr_id, | ||
| int | $ref_id, | ||
| ILIAS\KioskMode\State | $state, | ||
| int | $current_item = null |
||
| ) |
update a single State (for the item with ref_id); if $current_item is not set, assume that $ref_id is the current one.
Definition at line 114 of file class.ilLSStateDB.php.
|
protected |
Definition at line 33 of file class.ilLSStateDB.php.
Referenced by __construct().
| const ilLSStateDB::CURRENT_ITEM_ID = "current_item" |
Definition at line 28 of file class.ilLSStateDB.php.
Referenced by getCurrentItemsFor().
| const ilLSStateDB::FIRST_ACCESS = "first_access" |
Definition at line 30 of file class.ilLSStateDB.php.
Referenced by getFirstAccessFor().
| const ilLSStateDB::LAST_ACCESS = "last_access" |
Definition at line 31 of file class.ilLSStateDB.php.
Referenced by getLastAccessFor().
| const ilLSStateDB::STATES = "states" |
Definition at line 29 of file class.ilLSStateDB.php.
Referenced by getStatesFor().
| const ilLSStateDB::TABLE_NAME = 'lso_states' |
Definition at line 26 of file class.ilLSStateDB.php.