class BindingParameters (View source)

Constants

DEFAULT_HOST

DEFAULT_PORT

Methods

__construct(string $host = null, string $port = null, string $username = null, string $password = null, string $database = null)

Creates a new binding parameters instance.

create(mixed $parameters)

Creates a new binding parameters instance from a URI string or a parameters array.

fromString($uri)

Creates a new binding parameters instance from a URI string.

fromArray(array $parameters)

Creates a new binding parameters instance from a parameters array.

string
getHost()

Returns the specified IP host pointing to the OrientDB server.

int
getPort()

Returns the specified TCP port pointing to the OrientDB server.

string
getUsername()

Returns the specified username to access the OrientDB server.

string
getPassword()

Returns the specified password to access the OrientDB server.

string
getDatabase()

Returns the specified database on the OrientDB server.

Details

__construct(string $host = null, string $port = null, string $username = null, string $password = null, string $database = null)

Creates a new binding parameters instance.

Parameters

string $host
string $port
string $username
string $password
string $database

static BindingParameters create(mixed $parameters)

Creates a new binding parameters instance from a URI string or a parameters array.

Parameters

mixed $parameters

Return Value

BindingParameters

static BindingParameters fromString($uri)

Creates a new binding parameters instance from a URI string.

Parameters

$uri

Return Value

BindingParameters

static BindingParameters fromArray(array $parameters)

Creates a new binding parameters instance from a parameters array.

Parameters

array $parameters

Return Value

BindingParameters

string getHost()

Returns the specified IP host pointing to the OrientDB server.

Return Value

string

int getPort()

Returns the specified TCP port pointing to the OrientDB server.

Return Value

int

string getUsername()

Returns the specified username to access the OrientDB server.

Return Value

string

string getPassword()

Returns the specified password to access the OrientDB server.

Return Value

string

string getDatabase()

Returns the specified database on the OrientDB server.

Return Value

string