ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
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 | getNumberOfSessionsByType (int $a_from, int $a_to) |
Get session counters by type (opened, closed) More... | |
static | getLastAggregation () |
Get timestamp of last aggregation. 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 274 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $ilSetting, ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\SESSION_CLOSE_USER.
|
static |
Aggregate raw session data (older than given time)
integer | $a_now |
Definition at line 254 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\adminSync(), ilSession\lookupExpireTime(), and ilAuthDestroyExpiredSessionsCron\run().
|
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, ilDBInterface\insert(), and null.
|
static |
Create raw data entry.
Definition at line 43 of file class.ilSessionStatistics.php.
Referenced by ilSession\lookupExpireTime().
|
staticprotected |
Remove already aggregated raw data.
integer | $a_now |
Definition at line 393 of file class.ilSessionStatistics.php.
|
staticprotected |
Get next slot to aggregate.
Definition at line 133 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, ILIAS\Repository\int(), and null.
|
static |
Get timestamp of last aggregation.
Definition at line 455 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and null.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
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 409 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $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.
|
private |
Definition at line 26 of file class.ilSessionStatistics.php.