PHP Class Doctrine\OrientDB\Binding\BindingParameters

Mostrar archivo Open project: doctrine/orientdb-odm Class Usage Examples

Public Methods

Method Description
__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 ) : BindingParameters Creates a new binding parameters instance from a URI string or a parameters array.
fromArray ( array $parameters ) : BindingParameters Creates a new binding parameters instance from a parameters array.
fromString ( $uri ) : BindingParameters Creates a new binding parameters instance from a URI string.
getDatabase ( ) : string Returns the specified database on the OrientDB server.
getHost ( ) : string Returns the specified IP host pointing to the OrientDB server.
getPassword ( ) : string Returns the specified password to access the OrientDB server.
getPort ( ) : integer Returns the specified TCP port pointing to the OrientDB server.
getUsername ( ) : string Returns the specified username to access the OrientDB server.

Method Details

__construct() public method

Creates a new binding parameters instance.
public __construct ( string $host = null, string $port = null, string $username = null, string $password = null, string $database = null )
$host string
$port string
$username string
$password string
$database string

create() public static method

Creates a new binding parameters instance from a URI string or a parameters array.
public static create ( mixed $parameters ) : BindingParameters
$parameters mixed
return BindingParameters

fromArray() public static method

Creates a new binding parameters instance from a parameters array.
public static fromArray ( array $parameters ) : BindingParameters
$parameters array
return BindingParameters

fromString() public static method

Creates a new binding parameters instance from a URI string.
public static fromString ( $uri ) : BindingParameters
return BindingParameters

getDatabase() public method

Returns the specified database on the OrientDB server.
public getDatabase ( ) : string
return string

getHost() public method

Returns the specified IP host pointing to the OrientDB server.
public getHost ( ) : string
return string

getPassword() public method

Returns the specified password to access the OrientDB server.
public getPassword ( ) : string
return string

getPort() public method

Returns the specified TCP port pointing to the OrientDB server.
public getPort ( ) : integer
return integer

getUsername() public method

Returns the specified username to access the OrientDB server.
public getUsername ( ) : string
return string