|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Collaboration diagram for ilSessionStatistics: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().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
staticprotected |
Create new slot (using table lock)
Definition at line 219 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and ilDBInterface\insert().
Here is the call graph for this function:
|
static |
Create raw data entry.
Definition at line 43 of file class.ilSessionStatistics.php.
Referenced by ilSession\lookupExpireTime().
Here is the caller graph for this function:
|
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, and ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Get timestamp of last aggregation.
Definition at line 455 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.