|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Persistence for View-States. 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 | |
| $db | |
Persistence for View-States.
Definition at line 10 of file class.ilLSStateDB.php.
| ilLSStateDB::__construct | ( | ilDBInterface | $db | ) |
Definition at line 24 of file class.ilLSStateDB.php.
References $db.
|
protected |
Definition at line 215 of file class.ilLSStateDB.php.
References $data.
Referenced by select().
Here is the caller graph for this function:| ilLSStateDB::deleteFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
| int | $lso_ref_id | |
| int[] | $usr_ids |
Definition at line 167 of file class.ilLSStateDB.php.
References $query.
| ilLSStateDB::deleteForItem | ( | int | $lso_ref_id, |
| int | $item_ref_id | ||
| ) |
Definition at line 181 of file class.ilLSStateDB.php.
References $db, select(), serializeStates(), and update().
Here is the call graph for this function:
|
protected |
Definition at line 125 of file class.ilLSStateDB.php.
References select().
Referenced by updateState().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLSStateDB::getCurrentItemsFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 49 of file class.ilLSStateDB.php.
References $data, $ret, CURRENT_ITEM_ID, and select().
Here is the call graph for this function:| ilLSStateDB::getFirstAccessFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 63 of file class.ilLSStateDB.php.
References $data, $ret, FIRST_ACCESS, and select().
Here is the call graph for this function:| ilLSStateDB::getLastAccessFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 77 of file class.ilLSStateDB.php.
References $data, $ret, LAST_ACCESS, and select().
Here is the call graph for this function:| ilLSStateDB::getStatesFor | ( | int | $lso_ref_id, |
| array | $usr_ids = [] |
||
| ) |
Definition at line 32 of file class.ilLSStateDB.php.
References $data, $ret, select(), and STATES.
Referenced by updateState().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 130 of file class.ilLSStateDB.php.
Referenced by updateState().
Here is the caller graph for this function:
|
protected |
Definition at line 244 of file class.ilLSStateDB.php.
References $query, $result, $ret, buildStates(), FIRST_ACCESS, and LAST_ACCESS.
Referenced by deleteForItem(), entryExistsFor(), 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 234 of file class.ilLSStateDB.php.
References $data.
Referenced by deleteForItem(), and updateState().
Here is the caller graph for this function:
|
protected |
Definition at line 142 of file class.ilLSStateDB.php.
References $db.
Referenced by deleteForItem(), and updateState().
Here is the caller graph for this function:| 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 95 of file class.ilLSStateDB.php.
References $db, entryExistsFor(), getStatesFor(), insert(), serializeStates(), and update().
Here is the call graph for this function:
|
protected |
Definition at line 22 of file class.ilLSStateDB.php.
Referenced by __construct(), deleteForItem(), update(), and updateState().
| const ilLSStateDB::CURRENT_ITEM_ID = "current_item" |
Definition at line 14 of file class.ilLSStateDB.php.
Referenced by getCurrentItemsFor().
| const ilLSStateDB::FIRST_ACCESS = "first_access" |
Definition at line 16 of file class.ilLSStateDB.php.
Referenced by getFirstAccessFor(), and select().
| const ilLSStateDB::LAST_ACCESS = "last_access" |
Definition at line 17 of file class.ilLSStateDB.php.
Referenced by getLastAccessFor(), and select().
| const ilLSStateDB::STATES = "states" |
Definition at line 15 of file class.ilLSStateDB.php.
Referenced by getStatesFor().
| const ilLSStateDB::TABLE_NAME = 'lso_states' |
Definition at line 12 of file class.ilLSStateDB.php.