PHP 클래스 Doctrine\OrientDB\Binding\HttpBinding

상속: implements Doctrine\OrientDB\Binding\HttpBindingInterface
파일 보기 프로젝트 열기: doctrine/orientdb-odm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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