PHP Интерфейс Doctrine\OrientDB\Binding\HttpBindingInterface

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

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

Метод Описание
cluster ( string $cluster, integer $limit = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Retrieves records from the given cluster in the database.
command ( string $query, string $language = BindingInterface::LANGUAGE_SQLPLUS, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Executes a raw command on the given database.
connect ( string $database ) : Doctrine\OrientDB\Binding\BindingResultInterface Connects to the specified database.
createDatabase ( string $database, string $storage = 'memory', string $type = 'document' ) : Doctrine\OrientDB\Binding\BindingResultInterface Creates a new database.
deleteClass ( string $class, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Deletes a class.
deleteDatabase ( string $database ) : Doctrine\OrientDB\Binding\BindingResultInterface Deletes an existing database.
deleteDocument ( string $rid, string $version = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Deletes a document from the database.
disconnect ( ) : Doctrine\OrientDB\Binding\BindingResultInterface Disconnect this instance from the server.
getAdapter ( ) : Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface Sets the underlying HTTP client adapter.
getClass ( string $class, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Retrieves a class and its records.
getDocument ( string $rid, string $database = null, string $fetchPlan = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Retrieves a record from the database. An optional fetch plan can be used to specify how to retrieve the graph and limit its depth.
getServer ( ) : Doctrine\OrientDB\Binding\BindingResultInterface Gets the current server.
listDatabases ( ) : Doctrine\OrientDB\Binding\BindingResultInterface Lists all the existing databases.
postClass ( string $class, string $body = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Creates a new class.
postDocument ( string $document, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Stores a new document in the database.
putDocument ( string $rid, string $document, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Updates an existing document in the database.
query ( string $query, integer $limit = null, string $fetchPlan = null, string $language = BindingInterface::LANGUAGE_SQLPLUS, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface Executes a raw query on the given database.
setAdapter ( Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter ) Sets the underlying HTTP client adapter.
setAuthentication ( string $username = null, string $password = null ) Sets the username and password used to authenticate to the server.

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

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

Retrieves records from the given cluster in the database.
public cluster ( string $cluster, integer $limit = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$cluster string
$limit integer
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Executes a raw command on the given database.
public command ( string $query, string $language = BindingInterface::LANGUAGE_SQLPLUS, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$query string
$language string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Connects to the specified database.
public connect ( string $database ) : Doctrine\OrientDB\Binding\BindingResultInterface
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Creates a new database.
public createDatabase ( string $database, string $storage = 'memory', string $type = 'document' ) : Doctrine\OrientDB\Binding\BindingResultInterface
$database string
$storage string
$type string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Deletes a class.
public deleteClass ( string $class, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$class string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Deletes an existing database.
public deleteDatabase ( string $database ) : Doctrine\OrientDB\Binding\BindingResultInterface
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Deletes a document from the database.
public deleteDocument ( string $rid, string $version = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$rid string
$version string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Disconnect this instance from the server.
public disconnect ( ) : Doctrine\OrientDB\Binding\BindingResultInterface
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Sets the underlying HTTP client adapter.
public getAdapter ( ) : Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface
Результат Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface

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

Retrieves a class and its records.
public getClass ( string $class, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$class string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Retrieves a record from the database. An optional fetch plan can be used to specify how to retrieve the graph and limit its depth.
public getDocument ( string $rid, string $database = null, string $fetchPlan = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$rid string
$database string
$fetchPlan string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Gets the current server.
public getServer ( ) : Doctrine\OrientDB\Binding\BindingResultInterface
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Lists all the existing databases.
public listDatabases ( ) : Doctrine\OrientDB\Binding\BindingResultInterface
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Creates a new class.
public postClass ( string $class, string $body = null, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$class string
$body string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Stores a new document in the database.
public postDocument ( string $document, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$document string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Updates an existing document in the database.
public putDocument ( string $rid, string $document, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$rid string
$document string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Results can be limited with the $limit parameter and a fetch plan can be used to specify how to retrieve the graph and limit its depth. It differs from the command because OrientDB defines a query as a SELECT only.
public query ( string $query, integer $limit = null, string $fetchPlan = null, string $language = BindingInterface::LANGUAGE_SQLPLUS, string $database = null ) : Doctrine\OrientDB\Binding\BindingResultInterface
$query string SQL or Gremlin query.
$limit integer Maximum number of records (default is 20).
$fetchPlan string
$language string
$database string
Результат Doctrine\OrientDB\Binding\BindingResultInterface

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

Sets the underlying HTTP client adapter.
public setAdapter ( Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter )
$adapter Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface

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

Sets the username and password used to authenticate to the server.
public setAuthentication ( string $username = null, string $password = null )
$username string
$password string