public function listAQLFunctions($namespace = null)
    {
        try {
            $userFunction = new AqlUserFunction($this->_toolbox->getConnection());
            $functions = $userFunction->getRegisteredUserFunctions($namespace);

            $result = array();

            foreach ($functions as $function) {
                $result[$function['name']] = $function['code'];
            }

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function listAQLFunctions($namespace = null)
    {
        try {
            $userFunction = new AqlUserFunction($this->_toolbox->getConnection());
            $functions = $userFunction->getRegisteredUserFunctions($namespace);

            $result = array();

            foreach ($functions as $function) {
                $result[$function['name']] = $function['code'];
            }

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function listAQLFunctions ( $ namespace = null ) { try { $ userFunction = new AqlUserFunction ( $ this -> _toolbox -> getConnection ( ) ) ; $ functions = $ userFunction -> getRegisteredUserFunctions ( $ namespace ) ; $ result = array ( ) ; foreach ( $ functions as $ function ) { $ result [ $ function [ 'name' ] ] = $ function [ 'code' ] ; } return $ result ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new ServerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
List the AQL functions registered on the server and optionally, filter by namespace.
@param  string          $namespace The optional namespace to filter the list of AQL functions on.
@throws ServerException
List the AQL functions registered on the server and optionally filter by namespace .