You are here

public function PHPExcel_CachedObjectStorage_CacheBase::removeRow in Loft Data Grids 7.2

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

Remove a row, deleting all cells in that row

Parameters

string $row Row number to remove:

Return value

void

File

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

Class

PHPExcel_CachedObjectStorage_CacheBase
PHPExcel_CachedObjectStorage_CacheBase

Code

public function removeRow($row) {
  foreach ($this
    ->getCellList() as $coord) {
    sscanf($coord, '%[A-Z]%d', $c, $r);
    if ($r == $row) {
      $this
        ->deleteCacheData($coord);
    }
  }
}