PHP Класс Horde_Token_File, horde

Copyright 1999-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.
Автор: Max Kalika ([email protected])
Наследование: extends Horde_Token_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_connected boolean Boolean indicating whether or not we have an open file descriptor.
$_fd resource Handle for the open file descriptor.

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

Метод Описание
__construct ( array $params = [] ) Constructor.
__destruct ( ) Destructor.
add ( string $tokenID ) Add a token ID.
exists ( string $tokenID ) : boolean Does the token exist?
purge ( ) Delete all expired connection IDs.

Защищенные методы

Метод Описание
_connect ( ) Opens a file descriptor to a new or existing file.
_disconnect ( boolean $error = true ) Closes the file descriptor.

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

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

Constructor.
См. также: Horde_Token_Base::__construct() for more parameters.
public __construct ( array $params = [] )
$params array Optional parameters: - token_dir (string): The directory where to keep token files. DEFAULT: System temporary directory

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

Destructor.
public __destruct ( )

_connect() защищенный Метод

Opens a file descriptor to a new or existing file.
protected _connect ( )

_disconnect() защищенный Метод

Closes the file descriptor.
protected _disconnect ( boolean $error = true )
$error boolean Throw exception on error?

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

Add a token ID.
public add ( string $tokenID )
$tokenID string Token ID to add.

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

Does the token exist?
public exists ( string $tokenID ) : boolean
$tokenID string Token ID.
Результат boolean True if the token exists.

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

Delete all expired connection IDs.
public purge ( )

Описание свойств

$_connected защищенное свойство

Boolean indicating whether or not we have an open file descriptor.
protected bool $_connected
Результат boolean

$_fd защищенное свойство

Handle for the open file descriptor.
protected resource $_fd
Результат resource