You are here

function ExcelRange::isCellInAnyRange in Feeds Excel 7

Same name and namespace in other branches
  1. 6 includes/ExcelRange.inc \ExcelRange::isCellInAnyRange()

Retrieve if the given cell is in any range.

File

includes/ExcelRange.inc, line 218

Class

ExcelRange

Code

function isCellInAnyRange($row, $col) {
  foreach ($this->ranges as $range) {
    if ($this
      ->isRowInRange($range, $row)) {
      if ($this
        ->isColInRange($range, $col)) {
        return TRUE;
      }
    }
  }
  return FALSE;
}