Paradox/toolbox/CollectionManager.php
public function listCollections($excludeSystem = true, $includeInfo = false)
    {
        try {
            $result = $this->_toolbox->getCollectionHandler()->getAllCollections(array('excludeSystem' => (bool) $excludeSystem));

            if (empty($result)) {
                return array();
            }

            if (!$includeInfo) {
                return array_keys($result);
            } else {
                return $result;
            }
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function listCollections($excludeSystem = true, $includeInfo = false)
    {
        try {
            $result = $this->_toolbox->getCollectionHandler()->getAllCollections(array('excludeSystem' => (bool) $excludeSystem));

            if (empty($result)) {
                return array();
            }

            if (!$includeInfo) {
                return array_keys($result);
            } else {
                return $result;
            }
        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
List all the collections on the server.
@param  boolean                    $excludeSystem Whether we want to include system collections in the list or not.
@param  boolean                    $includeInfo   Whether we want to include information about each collection. If false, only a list of collection names will be returned.
@throws CollectionManagerException
@return array