ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSessionReminder Class Reference
+ Collaboration diagram for ilSessionReminder:

Public Member Functions

 calculateSecondsUntilExpiration ()
 calculateSecondsUntilReminder ()
 isActive ()
 setUser ($user)
 getUser ()
 setCurrentTime ($current_time)
 getCurrentTime ()
 setExpirationTime ($expiration_time)
 getExpirationTime ()
 setLeadTime ($lead_time)
 getLeadTime ()
 setSecondsUntilExpiration ($seconds_until_expiration)
 getSecondsUntilExpiration ()
 setSecondsUntilReminder ($seconds_until_reminder)
 getSecondsUntilReminder ()

Data Fields

const MIN_LEAD_TIME = 2
const SUGGESTED_LEAD_TIME = 5

Protected Member Functions

 __construct ()
 Constructor.
 isEnoughtTimeLeftForReminder ()

Protected Attributes

 $user
 $lead_time = 0
 $expiration_time = 0
 $current_time = 0
 $seconds_until_expiration = 0
 $seconds_until_reminder = 0

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.ilSessionReminder.php.

Constructor & Destructor Documentation

ilSessionReminder::__construct ( )
protected

Constructor.

Definition at line 55 of file class.ilSessionReminder.php.

{
}

Member Function Documentation

ilSessionReminder::calculateSecondsUntilExpiration ( )

Definition at line 98 of file class.ilSessionReminder.php.

References getCurrentTime(), getExpirationTime(), and setSecondsUntilExpiration().

+ Here is the call graph for this function:

ilSessionReminder::calculateSecondsUntilReminder ( )

Definition at line 106 of file class.ilSessionReminder.php.

References getLeadTime(), getSecondsUntilExpiration(), and setSecondsUntilReminder().

+ Here is the call graph for this function:

ilSessionReminder::getCurrentTime ( )
Returns
int

Definition at line 178 of file class.ilSessionReminder.php.

References $current_time.

Referenced by calculateSecondsUntilExpiration().

{
}

+ Here is the caller graph for this function:

ilSessionReminder::getExpirationTime ( )
Returns
int

Definition at line 196 of file class.ilSessionReminder.php.

References $expiration_time.

Referenced by calculateSecondsUntilExpiration().

+ Here is the caller graph for this function:

ilSessionReminder::getLeadTime ( )
Returns
int

Definition at line 214 of file class.ilSessionReminder.php.

References $lead_time.

Referenced by calculateSecondsUntilReminder(), and isEnoughtTimeLeftForReminder().

{
}

+ Here is the caller graph for this function:

ilSessionReminder::getSecondsUntilExpiration ( )
Returns
int

Definition at line 232 of file class.ilSessionReminder.php.

References $seconds_until_expiration.

Referenced by calculateSecondsUntilReminder(), and isEnoughtTimeLeftForReminder().

+ Here is the caller graph for this function:

ilSessionReminder::getSecondsUntilReminder ( )
Returns
int

Definition at line 250 of file class.ilSessionReminder.php.

References $seconds_until_reminder.

ilSessionReminder::getUser ( )
Returns
ilObjUser

Definition at line 160 of file class.ilSessionReminder.php.

References $user.

Referenced by isActive().

{
return $this->user;
}

+ Here is the caller graph for this function:

ilSessionReminder::isActive ( )
Returns
bool

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

References getUser(), and isEnoughtTimeLeftForReminder().

{
return
self::isGloballyActivated() &&
$this->getUser()->getId() != ANONYMOUS_USER_ID &&
(int)$this->getUser()->getPref('session_reminder_enabled') &&
}

+ Here is the call graph for this function:

ilSessionReminder::isEnoughtTimeLeftForReminder ( )
protected
Returns
bool

Definition at line 114 of file class.ilSessionReminder.php.

References getLeadTime(), and getSecondsUntilExpiration().

Referenced by isActive().

{
return $this->getLeadTime() < $this->getSecondsUntilExpiration();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSessionReminder::setCurrentTime (   $current_time)
Parameters
int$current_time
Returns
ilSessionReminder

Definition at line 169 of file class.ilSessionReminder.php.

References $current_time.

{
$this->current_time = $current_time;
return $this;
}
ilSessionReminder::setExpirationTime (   $expiration_time)
Parameters
int$expiration_time
Returns
ilSessionReminder

Definition at line 187 of file class.ilSessionReminder.php.

References $expiration_time.

{
$this->expiration_time = $expiration_time;
return $this;
}
ilSessionReminder::setLeadTime (   $lead_time)
Parameters
int$lead_time
Returns
ilSessionReminder

Definition at line 205 of file class.ilSessionReminder.php.

References $lead_time.

{
$this->lead_time = $lead_time;
return $this;
}
ilSessionReminder::setSecondsUntilExpiration (   $seconds_until_expiration)
Parameters
int$seconds_until_expiration
Returns
ilSessionReminder

Definition at line 223 of file class.ilSessionReminder.php.

References $seconds_until_expiration.

Referenced by calculateSecondsUntilExpiration().

{
$this->seconds_until_expiration = $seconds_until_expiration;
return $this;
}

+ Here is the caller graph for this function:

ilSessionReminder::setSecondsUntilReminder (   $seconds_until_reminder)
Parameters
int$seconds_until_reminder
Returns
ilSessionReminder

Definition at line 241 of file class.ilSessionReminder.php.

References $seconds_until_reminder.

Referenced by calculateSecondsUntilReminder().

{
$this->seconds_until_reminder = $seconds_until_reminder;
return $this;
}

+ Here is the caller graph for this function:

ilSessionReminder::setUser (   $user)
Parameters
ilObjUser$user
Returns
ilSessionReminder

Definition at line 151 of file class.ilSessionReminder.php.

References $user.

{
$this->user = $user;
return $this;
}

Field Documentation

ilSessionReminder::$current_time = 0
protected

Definition at line 40 of file class.ilSessionReminder.php.

Referenced by getCurrentTime(), and setCurrentTime().

ilSessionReminder::$expiration_time = 0
protected

Definition at line 35 of file class.ilSessionReminder.php.

Referenced by getExpirationTime(), and setExpirationTime().

ilSessionReminder::$lead_time = 0
protected

Definition at line 30 of file class.ilSessionReminder.php.

Referenced by getLeadTime(), and setLeadTime().

ilSessionReminder::$seconds_until_expiration = 0
protected
ilSessionReminder::$seconds_until_reminder = 0
protected

Definition at line 50 of file class.ilSessionReminder.php.

Referenced by getSecondsUntilReminder(), and setSecondsUntilReminder().

ilSessionReminder::$user
protected

Definition at line 25 of file class.ilSessionReminder.php.

Referenced by getUser(), and setUser().

const ilSessionReminder::MIN_LEAD_TIME = 2
const ilSessionReminder::SUGGESTED_LEAD_TIME = 5

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