ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 | |
ilDBInterface | $db |
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 |
ilLSStateDB::deleteFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
ilLSStateDB::deleteForItem | ( | int | $lso_ref_id, |
int | $item_ref_id | ||
) |
Definition at line 199 of file class.ilLSStateDB.php.
References select(), serializeStates(), and update().
|
protected |
Definition at line 144 of file class.ilLSStateDB.php.
References select().
Referenced by updateState().
ilLSStateDB::getCurrentItemsFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 60 of file class.ilLSStateDB.php.
References $data, and select().
ilLSStateDB::getFirstAccessFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
array<int> | $usr_ids |
Definition at line 78 of file class.ilLSStateDB.php.
References $data, and select().
ilLSStateDB::getLastAccessFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
int[] | $usr_ids |
Definition at line 96 of file class.ilLSStateDB.php.
References $data, and select().
ilLSStateDB::getStatesFor | ( | int | $lso_ref_id, |
array | $usr_ids = [] |
||
) |
Definition at line 43 of file class.ilLSStateDB.php.
References $data, and select().
Referenced by updateState().
|
protected |
Definition at line 149 of file class.ilLSStateDB.php.
Referenced by updateState().
|
protected |
int[] | $usr_ids |
Definition at line 273 of file class.ilLSStateDB.php.
References buildStates(), and ILIAS\Repository\int().
Referenced by deleteForItem(), entryExistsFor(), getCurrentItemsFor(), getFirstAccessFor(), getLastAccessFor(), and getStatesFor().
|
protected |
array | <int,ILIAS> ref_id=>State |
Definition at line 253 of file class.ilLSStateDB.php.
References $data, and $ref_id.
Referenced by deleteForItem(), and updateState().
|
protected |
Definition at line 161 of file class.ilLSStateDB.php.
References 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 114 of file class.ilLSStateDB.php.
References $ref_id, entryExistsFor(), getStatesFor(), insert(), serializeStates(), and update().
|
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.
const ilLSStateDB::FIRST_ACCESS = "first_access" |
Definition at line 30 of file class.ilLSStateDB.php.
const ilLSStateDB::LAST_ACCESS = "last_access" |
Definition at line 31 of file class.ilLSStateDB.php.
const ilLSStateDB::STATES = "states" |
Definition at line 29 of file class.ilLSStateDB.php.
const ilLSStateDB::TABLE_NAME = 'lso_states' |
Definition at line 26 of file class.ilLSStateDB.php.