public getChunkCollection ( boolean $refresh = false ) : |
||
$refresh | boolean | whether to reload the collection instance even if it is found in the cache. |
Résultat | mongo collection instance. |
public function getChunkCollection($refresh = false)
{
if ($refresh || !is_object($this->_chunkCollection)) {
$this->_chunkCollection = Yii::createObject(['class' => 'yii\\mongodb\\Collection', 'database' => $this->database, 'name' => $this->getPrefix() . '.chunks']);
}
return $this->_chunkCollection;
}