ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilSessionReminderCheck Class Reference
+ Collaboration diagram for ilSessionReminderCheck:

Protected Member Functions

 isSessionAlreadyExpired (int $expirationTime)
 
 isAuthenticatedUsrSession (?array $data)
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 9 of file class.ilSessionReminderCheck.php.

Member Function Documentation

◆ isAuthenticatedUsrSession()

ilSessionReminderCheck::isAuthenticatedUsrSession ( ?array  $data)
protected
Parameters
array | null$data
Returns
bool

Definition at line 131 of file class.ilSessionReminderCheck.php.

131 : bool
132 {
133 return (
134 is_array($data) &&
135 isset($data['user_id']) &&
136 (int) $data['user_id'] > 0 &&
137 (int) $data['user_id'] !== (int) ANONYMOUS_USER_ID
138 );
139 }
$data
Definition: storeScorm.php:23

References $data.

◆ isSessionAlreadyExpired()

ilSessionReminderCheck::isSessionAlreadyExpired ( int  $expirationTime)
protected
Parameters
int$expirationTime
Returns
bool

Definition at line 122 of file class.ilSessionReminderCheck.php.

122 : bool
123 {
124 return $expirationTime < time();
125 }

The documentation for this class was generated from the following file: