ArangoDB-PHP API Documentation
  • Namespace
  • Class
  • Deprecated

Namespaces

  • triagens
    • ArangoDb

Classes

  • AdminHandler
  • AqlUserFunction
  • Autoloader
  • Batch
  • BatchPart
  • BindVars
  • Collection
  • CollectionHandler
  • Connection
  • ConnectionOptions
  • Cursor
  • Database
  • DefaultValues
  • Document
  • DocumentHandler
  • Edge
  • EdgeDefinition
  • EdgeHandler
  • Endpoint
  • Export
  • ExportCursor
  • Graph
  • GraphHandler
  • Handler
  • HttpHelper
  • HttpResponse
  • QueryCacheHandler
  • QueryHandler
  • Statement
  • TraceRequest
  • TraceResponse
  • Transaction
  • Traversal
  • UpdatePolicy
  • UrlHelper
  • Urls
  • User
  • UserHandler
  • ValueValidator
  • Vertex
  • VertexHandler

Exceptions

  • ClientException
  • ConnectException
  • Exception
  • ServerException

Class UrlHelper

Some helper methods to construct and process URLs

Abstract
Namespace: triagens\ArangoDb
Package: triagens\ArangoDb
Since: 0.2
Located at UrlHelper.php

Methods summary

public static string
# getDocumentIdFromLocation( string $location )

Get the document id from a location header

Get the document id from a location header

Parameters

$location
  • HTTP response location header

Returns

string
  • document id parsed from header
public static string
# buildUrl( string $baseUrl, array $parts = [] )

Construct a URL from a base URL and additional parts, separated with '/' each

Construct a URL from a base URL and additional parts, separated with '/' each

This function accepts variable arguments.

Parameters

$baseUrl
  • base URL
$parts
  • URL parts to append

Returns

string
  • assembled URL
public static string
# appendParamsUrl( string $baseUrl, array $params )

Append parameters to a URL

Append parameters to a URL

Parameter values will be URL-encoded

Parameters

$baseUrl
  • base URL
$params
  • an array of parameters

Returns

string
  • the assembled URL
public static string
# getBoolString( mixed $value )

Get a string from a boolean value

Get a string from a boolean value

Parameters

$value
  • the value

Returns

string
  • "true" if $value evaluates to true, "false" otherwise
ArangoDB-PHP API Documentation API documentation generated by ApiGen