Class Api
Class Api
Direct known subclasses
frankmayer\ArangoDbPhpCore\Api\Rest\Async,
frankmayer\ArangoDbPhpCore\Api\Rest\Batch,
frankmayer\ArangoDbPhpCore\Api\Rest\Collection,
frankmayer\ArangoDbPhpCore\Api\Rest\Database,
frankmayer\ArangoDbPhpCore\Api\Rest\DocumentBase
Indirect known subclasses
frankmayer\ArangoDbPhpCore\Api\Rest\Document,
frankmayer\ArangoDbPhpCore\Api\Rest\Edge
Package: frankmayer\ArangoDbPhpCore\Api\Rest
Located at Api/Rest/Api.php
Methods summary
public
|
#
__construct( $client
)
Constructs an api object through which commands can be issued against the server. For each API class, only one instance per Client is necessary. |
protected
mixed
|
#
getReturnObject(
$request )
Returns the correct object, according to the 'isBatchPart' option. If it is a Batchpart, it returns the request, else the response. |
public
|
|
public
ResponseInterface
|
|
public static
array
|
#
array_merge_recursive_distinct( array $array1,
array $array2 )
array_merge_recursive does indeed merge arrays, but it converts values with duplicate keys to arrays rather than overwriting the value in the first array with the duplicate value in the second array, as array_merge does. I.e., with array_merge_recursive, this happens (documented behavior): |
Constants summary
string |
METHOD_GET
|
#
'GET'
|
string |
METHOD_POST
|
#
'POST'
|
string |
METHOD_PUT
|
#
'PUT'
|
string |
METHOD_PATCH
|
#
'PATCH'
|
string |
METHOD_DELETE
|
#
'DELETE'
|
string |
METHOD_HEAD
|
#
'HEAD'
|
string |
METHOD_OPTIONS
|
#
'OPTIONS'
|
Properties summary
protected
|
$client
The client instance of this api instance |