ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Persistence for View-States. More...
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 217 of file class.ilLSStateDB.php.
Referenced by select().
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, and PHP_EOL.
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().
|
protected |
Definition at line 125 of file class.ilLSStateDB.php.
References select().
Referenced by updateState().
ilLSStateDB::getCurrentItemsFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 49 of file class.ilLSStateDB.php.
References $data, $ret, and select().
ilLSStateDB::getFirstAccessFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 63 of file class.ilLSStateDB.php.
References $data, $ret, and select().
ilLSStateDB::getLastAccessFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 77 of file class.ilLSStateDB.php.
References $data, $ret, and select().
ilLSStateDB::getStatesFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 32 of file class.ilLSStateDB.php.
References $data, $ret, and select().
Referenced by updateState().
|
protected |
Definition at line 130 of file class.ilLSStateDB.php.
References $values.
Referenced by updateState().
|
protected |
Definition at line 246 of file class.ilLSStateDB.php.
References $query, $result, $ret, $row, buildStates(), and PHP_EOL.
Referenced by deleteForItem(), entryExistsFor(), getCurrentItemsFor(), getFirstAccessFor(), getLastAccessFor(), and getStatesFor().
|
protected |
array | <int,ILIAS> ref_id=>State |
Definition at line 236 of file class.ilLSStateDB.php.
Referenced by deleteForItem(), and updateState().
|
protected |
Definition at line 142 of file class.ilLSStateDB.php.
References $values, and ilDBInterface\update().
Referenced by deleteForItem(), and updateState().
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, $state, entryExistsFor(), getStatesFor(), insert(), serializeStates(), and update().
|
protected |
Definition at line 22 of file class.ilLSStateDB.php.
Referenced by __construct(), deleteForItem(), and updateState().
const ilLSStateDB::CURRENT_ITEM_ID = "current_item" |
Definition at line 14 of file class.ilLSStateDB.php.
const ilLSStateDB::FIRST_ACCESS = "first_access" |
Definition at line 16 of file class.ilLSStateDB.php.
const ilLSStateDB::LAST_ACCESS = "last_access" |
Definition at line 17 of file class.ilLSStateDB.php.
const ilLSStateDB::STATES = "states" |
Definition at line 15 of file class.ilLSStateDB.php.
const ilLSStateDB::TABLE_NAME = 'lso_states' |
Definition at line 12 of file class.ilLSStateDB.php.