lib/MongoLite/Database.php
public function listCollections() {

        foreach ($this->getCollectionNames() as $name) {
            if(!isset($this->collections[$name])) {
                $this->collections[$name] = new Collection($name, $this);
            }
        }

        return $this->collections;
    }
public function listCollections() {

        foreach ($this->getCollectionNames() as $name) {
            if(!isset($this->collections[$name])) {
                $this->collections[$name] = new Collection($name, $this);
            }
        }

        return $this->collections;
    }
public function listCollections ( ) { foreach ( $ this -> getCollectionNames ( ) as $ name ) { if ( ! isset ( $ this -> collections [ $ name ] ) ) { $ this -> collections [ $ name ] = new Collection ( $ name , $ this ) ; } } return $ this -> collections ; }
Get all collections in the database

@return array
Get all collections in the database