PHP Class Doctrine\OrientDB\Binding\HttpBinding

Inheritance: implements Doctrine\OrientDB\Binding\HttpBindingInterface
Afficher le fichier Open project: doctrine/orientdb-odm Class Usage Examples

Protected Properties

Свойство Type Description
$adapter
$database
$server

Méthodes publiques

Méthode Description
__construct ( BindingParameters $parameters, Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter = null ) Instantiates a new binding.
cluster ( $cluster, $limit = null, $database = null )
command ( $query, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null )
connect ( $database )
createDatabase ( $database, $storage = 'memory', $type = 'document' )
deleteClass ( $class, $database = null )
deleteDatabase ( $database )
deleteDocument ( $rid, $version = null, $database = null )
disconnect ( )
execute ( Query $query, $fetchPlan = null )
getAdapter ( )
getClass ( $class, $database = null )
getDatabase ( $database = null )
getDatabaseName ( ) : string Returns the name of the current database in use.
getDocument ( $rid, $database = null, $fetchPlan = null )
getServer ( )
listDatabases ( )
postClass ( $class, $body = null, $database = null )
postDocument ( $document, $database = null )
putDocument ( $rid, $document, $database = null )
query ( $query, $limit = null, $fetchPlan = null, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null )
setAdapter ( Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter )
setAuthentication ( $username = null, $password = null )
setDatabase ( string $database ) Sets the default database for the current binding instance.

Méthodes protégées

Méthode Description
ensureDatabase ( $database ) Checks wheter the specified database string is valid to perform a request.
getClassLocation ( string $database, string $class ) : string Returns the URL to fetch a class.
getClusterLocation ( string $database, string $cluster, integer $limit = null ) : string Returns the URL to fetch a cluster.
getDatabaseLocation ( string $database ) : string Returns the URL to fetch a database.
getDocumentLocation ( string $database, string $rid = null, string $fetchPlan = null ) : string Returns the URL to fetch a document.
getLocation ( string $method, string $database = null, array $arguments = null ) : string Creates a relative URL for the specified OrientDB method call.
getQueryLocation ( string $database, string $query, integer $limit = null, string $fetchPlan = null, $language = BindingInterface::LANGUAGE_SQLPLUS ) : string Returns the URL for the execution of a query.

Method Details

__construct() public méthode

Instantiates a new binding.
public __construct ( BindingParameters $parameters, Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter = null )
$parameters BindingParameters
$adapter Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface

cluster() public méthode

public cluster ( $cluster, $limit = null, $database = null )

command() public méthode

public command ( $query, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null )

connect() public méthode

public connect ( $database )

createDatabase() public méthode

public createDatabase ( $database, $storage = 'memory', $type = 'document' )

deleteClass() public méthode

public deleteClass ( $class, $database = null )

deleteDatabase() public méthode

public deleteDatabase ( $database )

deleteDocument() public méthode

public deleteDocument ( $rid, $version = null, $database = null )

disconnect() public méthode

public disconnect ( )

ensureDatabase() protected méthode

Checks wheter the specified database string is valid to perform a request.
protected ensureDatabase ( $database )

execute() public méthode

public execute ( Query $query, $fetchPlan = null )
$query Doctrine\OrientDB\Query\Query

getAdapter() public méthode

public getAdapter ( )

getClass() public méthode

public getClass ( $class, $database = null )

getClassLocation() protected méthode

Returns the URL to fetch a class.
protected getClassLocation ( string $database, string $class ) : string
$database string
$class string
Résultat string

getClusterLocation() protected méthode

Returns the URL to fetch a cluster.
protected getClusterLocation ( string $database, string $cluster, integer $limit = null ) : string
$database string
$cluster string
$limit integer
Résultat string

getDatabase() public méthode

public getDatabase ( $database = null )

getDatabaseLocation() protected méthode

Returns the URL to fetch a database.
protected getDatabaseLocation ( string $database ) : string
$database string
Résultat string

getDatabaseName() public méthode

Returns the name of the current database in use.
public getDatabaseName ( ) : string
Résultat string

getDocument() public méthode

public getDocument ( $rid, $database = null, $fetchPlan = null )

getDocumentLocation() protected méthode

Returns the URL to fetch a document.
protected getDocumentLocation ( string $database, string $rid = null, string $fetchPlan = null ) : string
$database string
$rid string
$fetchPlan string
Résultat string

getLocation() protected méthode

Creates a relative URL for the specified OrientDB method call.
protected getLocation ( string $method, string $database = null, array $arguments = null ) : string
$method string
$database string
$arguments array
Résultat string

getQueryLocation() protected méthode

Returns the URL for the execution of a query.
protected getQueryLocation ( string $database, string $query, integer $limit = null, string $fetchPlan = null, $language = BindingInterface::LANGUAGE_SQLPLUS ) : string
$database string
$query string
$limit integer
$fetchPlan string
Résultat string

getServer() public méthode

public getServer ( )

listDatabases() public méthode

public listDatabases ( )

postClass() public méthode

public postClass ( $class, $body = null, $database = null )

postDocument() public méthode

public postDocument ( $document, $database = null )

putDocument() public méthode

public putDocument ( $rid, $document, $database = null )

query() public méthode

public query ( $query, $limit = null, $fetchPlan = null, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null )

setAdapter() public méthode

public setAdapter ( Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter )
$adapter Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface

setAuthentication() public méthode

public setAuthentication ( $username = null, $password = null )

setDatabase() public méthode

Sets the default database for the current binding instance.
public setDatabase ( string $database )
$database string

Property Details

$adapter protected_oe property

protected $adapter

$database protected_oe property

protected $database

$server protected_oe property

protected $server