PHP Класс Predis\Connection\Parameters

Автор: Daniele Alessandri ([email protected])
Наследование: implements Predis\Connection\ParametersInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $parameters = [] )
__get ( $parameter )
__isset ( $parameter )
__sleep ( )
__toString ( )
create ( array | string $parameters ) : Parameters Creates a new instance by supplying the initial parameters either in the form of an URI string or a named array.
parse ( string $uri ) : array Parses an URI string returning an array of connection parameters.
toArray ( )

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

Метод Описание
getDefaults ( ) : array Returns some default parameters with their values.

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

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

public __construct ( array $parameters = [] )
$parameters array Named array of connection parameters.

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

public __get ( $parameter )

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

public __isset ( $parameter )

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

public __sleep ( )

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

public __toString ( )

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

Creates a new instance by supplying the initial parameters either in the form of an URI string or a named array.
public static create ( array | string $parameters ) : Parameters
$parameters array | string Set of connection parameters.
Результат Parameters

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

Returns some default parameters with their values.
protected getDefaults ( ) : array
Результат array

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

When using the "redis" and "rediss" schemes the URI is parsed according to the rules defined by the provisional registration documents approved by IANA. If the URI has a password in its "user-information" part or a database number in the "path" part these values override the values of "password" and "database" if they are present in the "query" part.
public static parse ( string $uri ) : array
$uri string URI string.
Результат array

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

public toArray ( )