PHP Класс SimpleSAML_Store, simplesamlphp

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
delete ( string $type, string $key ) Delete a value from the data store.
get ( string $type, string $key ) : mixed | null Retrieve a value from the data store.
getInstance ( ) : SimpleSAML_Store | false Retrieve our singleton instance.
set ( string $type, string $key, mixed $value, integer | null $expire = null ) Save a value to the data store.

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

delete() абстрактный публичный Метод

Delete a value from the data store.
abstract public delete ( string $type, string $key )
$type string The data type.
$key string The key.

get() абстрактный публичный Метод

Retrieve a value from the data store.
abstract public get ( string $type, string $key ) : mixed | null
$type string The data type.
$key string The key.
Результат mixed | null The value.

getInstance() публичный статический Метод

Retrieve our singleton instance.
public static getInstance ( ) : SimpleSAML_Store | false
Результат SimpleSAML_Store | false The data store, or false if it isn't enabled.

set() абстрактный публичный Метод

Save a value to the data store.
abstract public set ( string $type, string $key, mixed $value, integer | null $expire = null )
$type string The data type.
$key string The key.
$value mixed The value.
$expire integer | null The expiration time (unix timestamp), or null if it never expires.