public function getCollections($databaseName = null) {
		$database = $this->getDatabase($databaseName);

		if ($this->_profilerEnabled) {
			$event = $this->getProfiler()->startRead('Collections list');
		}

		$collections = $database->getCollectionNames();

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		return $collections;
	}
public function getCollections($databaseName = null) {
		$database = $this->getDatabase($databaseName);

		if ($this->_profilerEnabled) {
			$event = $this->getProfiler()->startRead('Collections list');
		}

		$collections = $database->getCollectionNames();

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		return $collections;
	}
public function getCollections ( $ databaseName = null ) { $ database = $ this -> getDatabase ( $ databaseName ) ; if ( $ this -> _profilerEnabled ) { $ event = $ this -> getProfiler ( ) -> startRead ( 'Collections list' ) ; } $ collections = $ database -> getCollectionNames ( ) ; if ( $ this -> _profilerEnabled ) { $ event -> stopSuccess ( ) ; } return $ collections ; }
Get a collections list of a database

@param string $databaseName
Get a collections list of a database