Example #1
0
 /**
  *	Delete a cell in cache identified by coordinate address
  *
  *	@param	string			$pCoord		Coordinate address of the cell to delete
  *	@throws	Exception
  */
 public function deleteCacheData($pCoord)
 {
     if ($pCoord === $this->_currentObjectID) {
         $this->_currentObject->detach();
         $this->_currentObjectID = $this->_currentObject = null;
     }
     if (isset($this->_cellCache[$pCoord])) {
         $this->_cellCache[$pCoord]->detach();
         unset($this->_cellCache[$pCoord]);
     }
 }
Example #2
0
 /**
  * Delete a cell in cache identified by coordinate address
  *
  * @param    string            $pCoord        Coordinate address of the cell to delete
  * @throws    PHPExcel_Exception
  */
 public function deleteCacheData($pCoord)
 {
     if ($pCoord === $this->currentObjectID && !is_null($this->currentObject)) {
         $this->currentObject->detach();
         $this->currentObjectID = $this->currentObject = null;
     }
     if (is_object($this->cellCache[$pCoord])) {
         $this->cellCache[$pCoord]->detach();
         unset($this->cellCache[$pCoord]);
     }
     $this->currentCellIsDirty = false;
 }