ArangoDB-PHP-Core API Documentation
  • Namespace
  • Class
  • Deprecated

Namespaces

  • frankmayer
    • ArangoDbPhpCore
      • Api
        • Rest
      • Config
      • Connectors
      • Plugins
      • Protocols
        • Http
      • TraitRepository

Classes

  • Api
  • Async
  • Batch
  • Collection
  • Database
  • Document
  • DocumentBase
  • Edge

Traits

  • DocumentTrait
  • EdgeTrait

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

Namespace: frankmayer\ArangoDbPhpCore\Api\Rest
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.

Constructs an api object through which commands can be issued against the server. For each API class, only one instance per Client is necessary.

Parameters

$client
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.

Returns the correct object, according to the 'isBatchPart' option. If it is a Batchpart, it returns the request, else the response.

Parameters

$request

Returns

mixed
public frankmayer\ArangoDbPhpCore\Protocols\RequestInterface
# getRequest( )

Returns

frankmayer\ArangoDbPhpCore\Protocols\RequestInterface
public ResponseInterface
# getResponse( )

Returns

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):

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):

array_merge_recursive(array('key' => 'org value'), array('key' => 'new value')); => array('key' => array('org value', 'new value'));

array_merge_recursive_distinct does not change the data-types of the values in the arrays. Matching keys' values in the second array overwrite those in the first array, as is the case with array_merge, i.e.:

array_merge_recursive_distinct(array('key' => 'org value'), array('key' => 'new value')); => array('key' => array('new value'));

Parameters are passed by reference, though only for performance reasons. They're not altered by this function.

Note: thanks Gabriel and Daniel for your work. I only made it static ;)

Parameters

$array1
$array2

Returns

array

Author

Daniel
Gabriel Sobrinho
Frank Mayer

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 frankmayer\ArangoDbPhpCore\Client $client

The client instance of this api instance

The client instance of this api instance

#
ArangoDB-PHP-Core API Documentation API documentation generated by ApiGen