Merge branch 'calcEngine' of https://github.com/PHPOffice/PHPExcel into calcEngine

This commit is contained in:
Mark Baker 2013-02-27 20:06:08 +00:00
commit 4e52db40dd
1 changed files with 20 additions and 0 deletions

View File

@ -106,6 +106,26 @@ abstract class PHPExcel_CachedObjectStorage_CacheBase {
} // function isDataSet()
/**
* Move a cell object from one address to another
*
* @param string $fromAddress Current address of the cell to move
* @param string $toAddress Destination address of the cell to move
* @return boolean
*/
public function moveCell($fromAddress, $toAddress) {
if ($fromAddress === $this->_currentObjectID) {
$this->_currentObjectID = $toAddress;
}
if (isset($this->_cellCache[$fromAddress])) {
$this->_cellCache[$toAddress] = &$this->_cellCache[$fromAddress];
unset($this->_cellCache[$fromAddress]);
}
return TRUE;
} // function isDataSet()
/**
* Add or Update a cell in cache
*