|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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) |
| 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 (int $a_now) |
| Remove already aggregated raw data. More... | |
Private Attributes | |
| const int | SLOT_SIZE = 15 |
Definition at line 21 of file class.ilSessionStatistics.php.
|
static |
Aggregate statistics data for one slot.
Definition at line 263 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, getNumberOfActiveRawSessions(), ILIAS\Repository\int(), ilSession\SESSION_CLOSE_EXPIRE, ilSession\SESSION_CLOSE_LOGIN, and ilSession\SESSION_CLOSE_USER.
Referenced by aggretateRaw().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Aggregate raw session data (older than given time)
Definition at line 243 of file class.ilSessionStatistics.php.
References aggregateRawHelper(), createNewAggregationSlot(), and deleteAggregatedRaw().
Referenced by ilSessionStatisticsGUI\adminSync(), and ilAuthDestroyExpiredSessionsCron\run().
Here is the call graph for this function:
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 73 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 210 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and getCurrentSlot().
Referenced by aggretateRaw().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Create raw data entry.
Definition at line 40 of file class.ilSessionStatistics.php.
|
staticprotected |
Remove already aggregated raw data.
Definition at line 383 of file class.ilSessionStatistics.php.
Referenced by aggretateRaw().
Here is the caller graph for this function:
|
staticprotected |
Get next slot to aggregate.
Definition at line 130 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, ILIAS\Repository\int(), and SLOT_SIZE.
Referenced by createNewAggregationSlot().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get timestamp of last aggregation.
Definition at line 447 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 168 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and ilSessionControl\$session_types_controlled.
Referenced by aggregateRawHelper().
Here is the caller graph for this function:
|
static |
Get session counters by type (opened, closed)
Definition at line 401 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\buildData().
Here is the caller graph for this function:
|
staticprotected |
Read raw data for timespan.
Definition at line 186 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $res, and ilSessionControl\$session_types_controlled.
|
static |
Is session statistics active at all?
Definition at line 28 of file class.ilSessionStatistics.php.
References $DIC, and $ilSetting.
|
private |
Definition at line 23 of file class.ilSessionStatistics.php.
Referenced by getCurrentSlot().