ILIAS
release_8 Revision v8.23
|
Static Public Member Functions | |
static | isActive () |
Is session statistics active at all? More... | |
static | createRawEntry (string $a_session_id, int $a_session_type, int $a_timestamp, int $a_user_id) |
Create raw data entry. More... | |
static | closeRawEntry ($a_session_id, ?int $a_context=null, $a_expired_at=null) |
Close raw data entry. More... | |
static | aggretateRaw (int $a_now) |
Aggregate raw session data (older than given time) More... | |
static | aggregateRawHelper (int $a_begin, int $a_end) |
Aggregate statistics data for one slot. More... | |
static | getLastMaxedOut () |
Get latest slot during which sessions were maxed out. More... | |
static | getMaxedOutDuration (int $a_from, int $a_to) |
Get maxed out duration in given timeframe. More... | |
static | getNumberOfSessionsByType (int $a_from, int $a_to) |
Get session counters by type (opened, closed) More... | |
static | getLastAggregation () |
Get timestamp of last aggregation. More... | |
static | getLimitForSlot (int $a_timestamp) |
Get max session setting for given timestamp. More... | |
static | updateLimitLog (int $a_new_value) |
Log max session setting. More... | |
Static Protected Member Functions | |
static | getCurrentSlot (int $a_now) |
Get next slot to aggregate. More... | |
static | getNumberOfActiveRawSessions (int $a_time) |
Count number of active sessions at given time. More... | |
static | getRawData (int $a_begin, int $a_end) |
Read raw data for timespan. More... | |
static | createNewAggregationSlot (int $a_now) |
Create new slot (using table lock) More... | |
static | deleteAggregatedRaw ($a_now) |
Remove already aggregated raw data. More... | |
Private Attributes | |
const | SLOT_SIZE = 15 |
Definition at line 24 of file class.ilSessionStatistics.php.
|
static |
Aggregate statistics data for one slot.
Definition at line 275 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $ilSetting, ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_FIRST, ilSession\SESSION_CLOSE_IDLE, ilSession\SESSION_CLOSE_LIMIT, ilSession\SESSION_CLOSE_LOGIN, and ilSession\SESSION_CLOSE_USER.
|
static |
Aggregate raw session data (older than given time)
integer | $a_now |
Definition at line 255 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\adminSync(), and ilSession\lookupExpireTime().
|
static |
Close raw data entry.
int | array | $a_session_id | |
int | $a_context | |
int | bool | $a_expired_at |
Definition at line 76 of file class.ilSessionStatistics.php.
References $DIC, $id, and $ilDB.
Referenced by ilSession\_destroy().
|
staticprotected |
Create new slot (using table lock)
Definition at line 219 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and ilDBInterface\insert().
|
static |
Create raw data entry.
Definition at line 43 of file class.ilSessionStatistics.php.
Referenced by ilSessionControl\checkCurrentSessionIsAllowed(), and ilSession\lookupExpireTime().
|
staticprotected |
Remove already aggregated raw data.
integer | $a_now |
Definition at line 406 of file class.ilSessionStatistics.php.
|
staticprotected |
Get next slot to aggregate.
Definition at line 133 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
|
static |
Get timestamp of last aggregation.
Definition at line 515 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
Get latest slot during which sessions were maxed out.
Definition at line 422 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
Get max session setting for given timestamp.
Definition at line 535 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $ilSetting, $res, and ilSessionControl\DEFAULT_MAX_COUNT.
|
static |
Get maxed out duration in given timeframe.
Definition at line 444 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\buildData().
|
staticprotected |
Count number of active sessions at given time.
integer | $a_time |
Definition at line 177 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and ilSessionControl\$session_types_controlled.
|
static |
Get session counters by type (opened, closed)
Definition at line 467 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, ILIAS\LTI\ToolProvider\$key, $res, and ILIAS\Repository\int().
Referenced by ilSessionStatisticsGUI\buildData().
|
staticprotected |
Read raw data for timespan.
Definition at line 195 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and ilSessionControl\$session_types_controlled.
|
static |
Is session statistics active at all?
Definition at line 31 of file class.ilSessionStatistics.php.
References $DIC, and $ilSetting.
|
static |
Log max session setting.
Definition at line 558 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $ilSetting, $ilUser, ilSessionControl\DEFAULT_MAX_COUNT, and ILIAS\Repository\int().
Referenced by ilObjUserFolderGUI\saveGeneralSettingsObject().
|
private |
Definition at line 26 of file class.ilSessionStatistics.php.