public getCollection ( string | array $name, boolean $refresh = false ) : |
||
$name | string | array | collection name. If string considered as the name of the collection inside the default database. If array - first element considered as the name of the database, second - as name of collection inside that database |
$refresh | boolean | whether to reload the collection instance even if it is found in the cache. |
return | Mongo collection instance. |