| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
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.
Referenced by select().
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 144 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 60 of file class.ilLSStateDB.php.
References $data, 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, 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, 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, and select().
Referenced by updateState().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 149 of file class.ilLSStateDB.php.
Referenced by updateState().
 Here is the caller graph for this function:
      
  | 
  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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  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().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 161 of file class.ilLSStateDB.php.
References ilDBInterface\update().
Referenced by deleteForItem(), and updateState().
 Here is the call graph for this function:
 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 114 of file class.ilLSStateDB.php.
References $ref_id, entryExistsFor(), getStatesFor(), insert(), serializeStates(), and update().
 Here is the call graph for this function:
      
  | 
  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.