46 if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
47 $this->_currentObject->detach();
50 $this->_currentCellIsDirty =
false;
52 $this->_currentObjectID = $this->_currentObject = null;
65 if (($pCoord !== $this->_currentObjectID) && ($this->_currentObjectID !== null)) {
69 $this->_currentObjectID = $pCoord;
70 $this->_currentObject = $cell;
71 $this->_currentCellIsDirty =
true;
85 if ($pCoord === $this->_currentObjectID) {
91 if (!isset($this->_cellCache[$pCoord])) {
97 $this->_currentObjectID = $pCoord;
98 $this->_currentObject = unserialize(gzinflate($this->_cellCache[$pCoord]));
100 $this->_currentObject->attach($this);
113 if ($this->_currentObjectID !== null) {
117 return parent::getCellList();
127 if(!is_null($this->_currentObject)) {
128 $this->_currentObject->detach();
129 $this->_currentObject = $this->_currentObjectID = null;
131 $this->_cellCache =
array();
134 $this->_parent = null;
getCacheData($pCoord)
Get cell at a specific coordinate.
_storeData()
Store cell data in cache for the current cell object if it's "dirty", and the 'nullify' the current c...
getCellList()
Get a list of all cell addresses currently held in cache.
unsetWorksheetCells()
Clear the cell collection and disconnect from our parent.
Create styles array
The data for the language used.
addCacheData($pCoord, PHPExcel_Cell $cell)
Add or Update a cell in cache identified by coordinate address.