public function PHPExcel_CachedObjectStorage_Memory::copyCellCollection in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Memory.php \PHPExcel_CachedObjectStorage_Memory::copyCellCollection()
* Clone the cell collection * *
Parameters
PHPExcel_Worksheet $parent The new worksheet: * @return void
Overrides PHPExcel_CachedObjectStorage_CacheBase::copyCellCollection
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Memory.php, line 93
Class
- PHPExcel_CachedObjectStorage_Memory
- PHPExcel_CachedObjectStorage_Memory
Code
public function copyCellCollection(PHPExcel_Worksheet $parent) {
parent::copyCellCollection($parent);
$newCollection = array();
foreach ($this->_cellCache as $k => &$cell) {
$newCollection[$k] = clone $cell;
$newCollection[$k]
->attach($this);
}
$this->_cellCache = $newCollection;
}