PHP 클래스 Predis\Connection\Parameters

저자: Daniele Alessandri ([email protected])
상속: implements Predis\Connection\ParametersInterface
파일 보기 프로젝트 열기: nrk/predis 1 사용 예제들

공개 메소드들

메소드 설명
__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 ( )