You are here

public function PHPExcel_CachedObjectStorage_CacheBase::removeColumn 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::removeColumn()

Remove a column, deleting all cells in that column

Parameters

string $column Column ID to remove:

Return value

void

File

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

Class

PHPExcel_CachedObjectStorage_CacheBase
PHPExcel_CachedObjectStorage_CacheBase

Code

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