\AutoLogout
Basic user-idle auto logout class
Synopsis
class AutoLogout
{
- // constants
- const LOGOUT_URL = '?idleTimerAutoLogout=true';
- const OPTION_IDLE = 'AUTO_LOGOUT_IDLE';
- const OPTION_EXCLUDE = 'AUTO_LOGOUT_EXCLUDE';
- // members
- protected integer $idleLogout = 0;
- protected array $excludedAdmins = ;
- // methods
- public void __construct()
- protected void setOptions()
- protected string createDialog()
- protected string createTimer()
- public string render()
Constants
| Name | Value |
|---|---|
| LOGOUT_URL | '?idleTimerAutoLogout=true' |
| OPTION_IDLE | 'AUTO_LOGOUT_IDLE' |
| OPTION_EXCLUDE | 'AUTO_LOGOUT_EXCLUDE' |
Members
protected
- $excludedAdmins
—
array
Contains list of excluded admins if set - $idleLogout
—
int
Contains raw value of idle config option in minutes
Methods
protected
- createDialog() — returns logout dialog localised template
- createTimer() — returns JQuery subroutine for auto-logout
- setOptions() — Sets current instance properties
public
- __construct()
- render() — renders idle timeout auto logout scripts id needed