PHP Класс Horde_Kolab_Session_Valid_Base, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Наследование: implements Horde_Kolab_Session_Valid
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Horde_Kolab_Session $session, mixed $auth ) Constructor.
getAuth ( ) : mixed Return the auth driver of this validator.
getSession ( ) : Horde_Kolab_Session Return the session this validator checks.
validate ( string $user = null ) : boolean Reset the current session information in case it does not match the authentication information anymore.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Horde_Kolab_Session $session, mixed $auth )
$session Horde_Kolab_Session The session that should be validated.
$auth mixed The user ID or false if no user is logged in.

getAuth() публичный Метод

Return the auth driver of this validator.
public getAuth ( ) : mixed
Результат mixed The user ID or false if no user is logged in.

getSession() публичный Метод

Return the session this validator checks.
public getSession ( ) : Horde_Kolab_Session
Результат Horde_Kolab_Session The session checked by this validator.

validate() публичный Метод

Reset the current session information in case it does not match the authentication information anymore.
public validate ( string $user = null ) : boolean
$user string The user the session information is being requested for. This is usually empty, indicating the current user.
Результат boolean True if the session is still valid.