public function sources($class = null) {
		$this->_checkConnection();
		$conn = $this->connection;
		return array_map(function($col) { return $col->getName(); }, $conn->listCollections());
	}
public function sources($class = null) {
		$this->_checkConnection();
		$conn = $this->connection;
		return array_map(function($col) { return $col->getName(); }, $conn->listCollections());
	}
public function sources ( $ class = null ) { $ this -> _checkConnection ( ) ; $ conn = $ this -> connection ; return array_map ( function ( $ col ) { return $ col -> getName ( ) ; } , $ conn -> listCollections ( ) ) ; }
Returns the list of collections in the currently-connected database.

@param string $class The fully-name-spaced class name of the model object making the request.
@return array Returns an array of objects to which models can connect.
Returns the list of collections in the currently - connected database .