public function getAllCollections(array $options = [])
    {
        $options = array_merge(['excludeSystem' => false, 'keys' => 'result'], $options);
        $params  = [];
        if ($options['excludeSystem'] === true) {
            $params[self::OPTION_EXCLUDE_SYSTEM] = true;
        }
        $url      = UrlHelper::appendParamsUrl(Urls::URL_COLLECTION, $params);
        $response = $this->getConnection()->get(UrlHelper::buildUrl($url, []));
        $response = $response->getJson();
        if (isset($response[$options['keys']])) {
            $result = [];
            foreach ($response[$options['keys']] as $collection) {
                $result[$collection['name']] = $collection;
            }

            return $result;
        }

        return $response;
    }
public function getAllCollections(array $options = [])
    {
        $options = array_merge(['excludeSystem' => false, 'keys' => 'result'], $options);
        $params  = [];
        if ($options['excludeSystem'] === true) {
            $params[self::OPTION_EXCLUDE_SYSTEM] = true;
        }
        $url      = UrlHelper::appendParamsUrl(Urls::URL_COLLECTION, $params);
        $response = $this->getConnection()->get(UrlHelper::buildUrl($url, []));
        $response = $response->getJson();
        if (isset($response[$options['keys']])) {
            $result = [];
            foreach ($response[$options['keys']] as $collection) {
                $result[$collection['name']] = $collection;
            }

            return $result;
        }

        return $response;
    }
public function getAllCollections ( array $ options = [ ] ) { $ options = array_merge ( [ 'excludeSystem' => false , 'keys' => 'result' ] , $ options ) ; $ params = [ ] ; if ( $ options [ 'excludeSystem' ] === true ) { $ params [ self :: OPTION_EXCLUDE_SYSTEM ] = true ; } $ url = UrlHelper :: appendParamsUrl ( Urls :: URL_COLLECTION , $ params ) ; $ response = $ this -> getConnection ( ) -> get ( UrlHelper :: buildUrl ( $ url , [ ] ) ) ; $ response = $ response -> getJson ( ) ; if ( isset ( $ response [ $ options [ 'keys' ] ] ) ) { $ result = [ ] ; foreach ( $ response [ $ options [ 'keys' ] ] as $ collection ) { $ result [ $ collection [ 'name' ] ] = $ collection ; } return $ result ; } return $ response ; }
Get list of all available collections per default with the collection names as index.
Returns empty array if none are available.

@param array $options            - optional - an array of options.
<p>Options are :<br>
<li>'excludeSystem' -   With a value of true, all system collections will be excluded from the response.</li>
<li>'keys' -  With a value of "collections", the index of the resulting array is numerical,
With a value of "names", the index of the resulting array are the collection names.</li>
</p>

@return array
@throws \ArangoDBClient\Exception
@throws \ArangoDBClient\ClientException
Get list of all available collections per default with the collection names as index . Returns empty array if none are available .