Handles automatic loading of missing class files.

The autoloader can be nested with other autoloaders. It will only process classes from its own namespace and ignore all others.

package ArangoDBClient
since 0.2

 Methods

Initialise the autoloader

init() : void
Static

Exceptions

\ArangoDBClient\Exception

Handle loading of an unknown class

load(string $className) : void
Static

This will only handle class from its own namespace and ignore all others.

This allows multiple autoloaders to be used in a nested fashion.

Parameters

$className

string
  • name of class to be loaded

Check the runtime environment

checkEnvironment() : void
Static

This will check whether the runtime environment is compatible with the Arango PHP client.

Exceptions

\ArangoDBClient\ClientException

 Properties

 

Directory with library files

$libDir : string

Default

Static

 Constants

 

Class file extension

EXTENSION = '.php'