ILIAS
release_4-3 Revision
|
Static Public Member Functions | |
static | isActive () |
Is session statistics active at all? | |
static | createRawEntry ($a_session_id, $a_session_type, $a_timestamp, $a_user_id) |
Create raw data entry. | |
static | closeRawEntry ($a_session_id, $a_context=null, $a_expired_at=null) |
Close raw data entry. | |
static | aggretateRaw ($a_now) |
Aggregate raw session data (older than given time) | |
static | aggregateRawHelper ($a_begin, $a_end) |
Aggregate statistics data for one slot. | |
static | getLastMaxedOut () |
Get latest slot during which sessions were maxed out. | |
static | getMaxedOutDuration ($a_from, $a_to) |
Get maxed out duration in given timeframe. | |
static | getNumberOfSessionsByType ($a_from, $a_to) |
Get session counters by type (opened, closed) | |
static | getActiveSessions ($a_from, $a_to) |
Get active sessions aggregated data. | |
static | getLastAggregation () |
Get timestamp of last aggregation. | |
static | getLimitForSlot ($a_timestamp) |
Get max session setting for given timestamp. | |
static | updateLimitLog ($a_new_value) |
Log max session setting. |
Data Fields | |
const | SLOT_SIZE = 15 |
Static Protected Member Functions | |
static | getCurrentSlot ($a_now) |
Get next slot to aggregate. | |
static | getNumberOfActiveRawSessions ($a_time) |
Count number of active sessions at given time. | |
static | getRawData ($a_begin, $a_end) |
Read raw data for timespan. | |
static | createNewAggregationSlot ($a_now) |
Create new slot (using table lock) | |
static | deleteAggregatedRaw ($a_now) |
Remove already aggregated raw data. |
Definition at line 11 of file class.ilSessionStatistics.php.
|
static |
Aggregate statistics data for one slot.
timestamp | $a_begin | |
timestamp | $a_end |
Definition at line 286 of file class.ilSessionStatistics.php.
References $ilSetting, getLimitForSlot(), getNumberOfActiveRawSessions(), 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.
Referenced by aggretateRaw().
|
static |
Aggregate raw session data (older than given time)
integer | $a_now |
Definition at line 262 of file class.ilSessionStatistics.php.
References aggregateRawHelper(), createNewAggregationSlot(), and deleteAggregatedRaw().
Referenced by ilSession\_writeData(), and ilSessionStatisticsGUI\adminSync().
|
static |
Close raw data entry.
int | array | $a_session_id | |
int | $a_context | |
int | bool | $a_expired_at |
Definition at line 72 of file class.ilSessionStatistics.php.
Referenced by ilSession\_destroy().
|
staticprotected |
Create new slot (using table lock)
integer | $a_now |
Definition at line 230 of file class.ilSessionStatistics.php.
References getCurrentSlot(), and ilDB\LOCK_WRITE.
Referenced by aggretateRaw().
|
static |
Create raw data entry.
int | $a_session_id | |
int | $a_session_type | |
int | $a_timestamp | |
int | $a_user_id |
Definition at line 40 of file class.ilSessionStatistics.php.
Referenced by ilSession\_writeData(), and ilSessionControl\checkCurrentSessionIsAllowed().
|
staticprotected |
Remove already aggregated raw data.
integer | $a_now |
Definition at line 422 of file class.ilSessionStatistics.php.
Referenced by aggretateRaw().
|
static |
Get active sessions aggregated data.
int | $a_from | |
int | $a_to |
Definition at line 506 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\buildData().
|
staticprotected |
Get next slot to aggregate.
integer | $a_now |
Definition at line 139 of file class.ilSessionStatistics.php.
References $res, $row, and SLOT_SIZE.
Referenced by createNewAggregationSlot().
|
static |
Get timestamp of last aggregation.
Definition at line 530 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
Get latest slot during which sessions were maxed out.
Definition at line 438 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
|
static |
Get max session setting for given timestamp.
timestamp | $a_timestamp |
Definition at line 549 of file class.ilSessionStatistics.php.
References $ilSetting, $res, and ilSessionControl\DEFAULT_MAX_COUNT.
Referenced by aggregateRawHelper().
|
static |
Get maxed out duration in given timeframe.
int | $a_from | |
int | $a_to |
Definition at line 460 of file class.ilSessionStatistics.php.
Referenced by ilSessionStatisticsGUI\buildData().
|
staticprotected |
Count number of active sessions at given time.
integer | $a_time |
Definition at line 186 of file class.ilSessionStatistics.php.
References $res, $row, and ilSessionControl\$session_types_controlled.
Referenced by aggregateRawHelper().
|
static |
Get session counters by type (opened, closed)
int | $a_from | |
int | $a_to |
Definition at line 484 of file class.ilSessionStatistics.php.
References $res.
Referenced by ilSessionStatisticsGUI\buildData().
|
staticprotected |
Read raw data for timespan.
integer | $a_begin | |
integer | $a_end |
Definition at line 206 of file class.ilSessionStatistics.php.
References $res, $row, and ilSessionControl\$session_types_controlled.
|
static |
Is session statistics active at all?
Definition at line 20 of file class.ilSessionStatistics.php.
References $ilSetting.
|
static |
Log max session setting.
int | $a_new_value |
Definition at line 574 of file class.ilSessionStatistics.php.
References $ilSetting, $ilUser, and ilSessionControl\DEFAULT_MAX_COUNT.
Referenced by ilObjSystemFolderGUI\saveBasicSettingsObject().
const ilSessionStatistics::SLOT_SIZE = 15 |
Definition at line 13 of file class.ilSessionStatistics.php.
Referenced by getCurrentSlot().