public function PHPExcel_Cell::isInRange in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php \PHPExcel_Cell::isInRange()
* Is cell in a specific range? * *
Parameters
string $pRange Cell range (e.g. A1:A1): * @return boolean
1 call to PHPExcel_Cell::isInRange()
- PHPExcel_Cell::getMergeRange in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Cell.php - * If this cell is in a merge range, then return the range * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Cell.php, line 559
Class
- PHPExcel_Cell
- PHPExcel_Cell
Code
public function isInRange($pRange = 'A1:A1') {
list($rangeStart, $rangeEnd) = self::rangeBoundaries($pRange);
// Translate properties
$myColumn = self::columnIndexFromString($this
->getColumn());
$myRow = $this
->getRow();
// Verify if cell is in range
return $rangeStart[0] <= $myColumn && $rangeEnd[0] >= $myColumn && $rangeStart[1] <= $myRow && $rangeEnd[1] >= $myRow;
}