PHP Класс Doctrine\OrientDB\Binding\HttpBinding

Наследование: implements Doctrine\OrientDB\Binding\HttpBindingInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$adapter
$database
$server

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

Метод Описание
__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.

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

Метод Описание
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.

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

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

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 cluster ( $cluster, $limit = null, $database = null )

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

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

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

public connect ( $database )

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

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

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

public deleteClass ( $class, $database = null )

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

public deleteDatabase ( $database )

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

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

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

public disconnect ( )

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

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

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

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

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

public getAdapter ( )

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

public getClass ( $class, $database = null )

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

Returns the URL to fetch a class.
protected getClassLocation ( string $database, string $class ) : string
$database string
$class string
Результат string

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

Returns the URL to fetch a cluster.
protected getClusterLocation ( string $database, string $cluster, integer $limit = null ) : string
$database string
$cluster string
$limit integer
Результат string

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

public getDatabase ( $database = null )

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

Returns the URL to fetch a database.
protected getDatabaseLocation ( string $database ) : string
$database string
Результат string

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

Returns the name of the current database in use.
public getDatabaseName ( ) : string
Результат string

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

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

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

Returns the URL to fetch a document.
protected getDocumentLocation ( string $database, string $rid = null, string $fetchPlan = null ) : string
$database string
$rid string
$fetchPlan string
Результат string

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

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
Результат string

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

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
Результат string

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

public getServer ( )

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

public listDatabases ( )

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

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

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

public postDocument ( $document, $database = null )

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

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

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

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

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

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

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

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

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

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

Описание свойств

$adapter защищенное свойство

protected $adapter

$database защищенное свойство

protected $database

$server защищенное свойство

protected $server