Свойство | Type | Description | |
---|---|---|---|
$adapter | |||
$database | |||
$server |
Méthode | Description | |
---|---|---|
__construct ( |
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 ( |
||
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é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. |
public __construct ( |
||
$parameters | ||
$adapter | Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface |
public command ( $query, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null ) |
public createDatabase ( $database, $storage = 'memory', $type = 'document' ) |
protected ensureDatabase ( $database ) |
public execute ( |
||
$query |
protected getDatabaseLocation ( string $database ) : string | ||
$database | string | |
Résultat | string |
public getDatabaseName ( ) : string | ||
Résultat | string |
public query ( $query, $limit = null, $fetchPlan = null, $language = BindingInterface::LANGUAGE_SQLPLUS, $database = null ) |
public setAdapter ( Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface $adapter ) | ||
$adapter | Doctrine\OrientDB\Binding\Adapter\HttpClientAdapterInterface |
public setDatabase ( string $database ) | ||
$database | string |