MongoLite\Database::listCollections PHP 메소드

listCollections() 공개 메소드

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