You are here

public function PHPExcel_CachedObjectStorage_CacheBase::moveCell in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php \PHPExcel_CachedObjectStorage_CacheBase::moveCell()

* Move a cell object from one address to another * *

Parameters

string $fromAddress Current address of the cell to move: * @param string $toAddress Destination address of the cell to move * @return boolean

2 methods override PHPExcel_CachedObjectStorage_CacheBase::moveCell()
PHPExcel_CachedObjectStorage_SQLite3::moveCell in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php
* Move a cell object from one address to another * *
PHPExcel_CachedObjectStorage_SQLite::moveCell in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
* Move a cell object from one address to another * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php, line 121

Class

PHPExcel_CachedObjectStorage_CacheBase
PHPExcel_CachedObjectStorage_CacheBase

Code

public function moveCell($fromAddress, $toAddress) {
  if ($fromAddress === $this->_currentObjectID) {
    $this->_currentObjectID = $toAddress;
  }
  $this->_currentCellIsDirty = true;
  if (isset($this->_cellCache[$fromAddress])) {
    $this->_cellCache[$toAddress] =& $this->_cellCache[$fromAddress];
    unset($this->_cellCache[$fromAddress]);
  }
  return TRUE;
}