Extends
lithium\data\Source
Returns the list of collections in the currently-connected database.
Parameters
- string $class The fully-name-spaced class name of the model object making the request.
Returns
array Returns an array of objects to which models can connect.Source
public function sources($class = null) {
$this->_checkConnection();
$conn = $this->connection;
return array_map(function($col) { return $col->getName(); }, $conn->listCollections());
}