| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 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 | 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 | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
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_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 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 ilSessionControl\checkCurrentSessionIsAllowed(), and ilSession\lookupExpireTime().
 Here is the caller graph for this function:
      
  | 
  staticprotected | 
Remove already aggregated raw data.
| integer | $a_now | 
Definition at line 405 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 514 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
 Here is the caller graph for this function:
      
  | 
  static | 
Get latest slot during which sessions were maxed out.
Definition at line 421 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\renderCurrentBasics().
 Here is the caller graph for this function:
      
  | 
  static | 
Get max session setting for given timestamp.
Definition at line 534 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 443 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, and $res.
Referenced by ilSessionStatisticsGUI\buildData().
 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 466 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, ILIAS\LTI\ToolProvider\$key, $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.
      
  | 
  static | 
Log max session setting.
Definition at line 557 of file class.ilSessionStatistics.php.
References $DIC, $ilDB, $ilSetting, ilSessionControl\DEFAULT_MAX_COUNT, and ILIAS\Repository\int().
Referenced by ilObjUserFolderGUI\saveGeneralSettingsObject().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 26 of file class.ilSessionStatistics.php.