PHP Класс Horde_Token_Sql, horde

The table structure for the tokens is as follows:
CREATE TABLE horde_tokens (
    token_address    VARCHAR(100) NOT NULL,
    token_id         VARCHAR(32) NOT NULL,
    token_timestamp  BIGINT NOT NULL,

    PRIMARY KEY (token_address, token_id)
);
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)

Свойство Тип Описание
$_db Horde_Db_Adapter Handle for the database connection.

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

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

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

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

Constructor.
См. также: Horde_Token_Base::__construct() for more parameters.
public __construct ( array $params = [] )
$params array Required parameters: - db (Horde_Db_Adapter): The DB instance. Optional parameters: - table (string): The name of the tokens table. DEFAULT: 'horde_tokens'

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 ( )

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

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

Handle for the database connection.
protected Horde_Db_Adapter $_db
Результат Horde_Db_Adapter