public static function PHPExcel_Cell::buildRange in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell.php \PHPExcel_Cell::buildRange()
* Build range from coordinate strings * *
Parameters
array $pRange Array containg one or more arrays containing one or two coordinate strings: * @return string String representation of $pRange * @throws PHPExcel_Exception
3 calls to PHPExcel_Cell::buildRange()
- PHPExcel_ReferenceHelper::_updateCellRange in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ ReferenceHelper.php - * Update cell range * *
- PHPExcel_Writer_Excel2007_Workbook::_writeDefinedNameForNamedRange in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Workbook.php - * Write Defined Name for named range * *
- PHPExcel_Writer_Excel5_Workbook::_writeAllDefinedNamesBiff8 in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Workbook.php - * Writes all the DEFINEDNAME records (BIFF8). * So far this is only used for repeating rows/columns (print titles) and print areas
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Cell.php, line 682
Class
- PHPExcel_Cell
- PHPExcel_Cell
Code
public static function buildRange($pRange) {
// Verify range
if (!is_array($pRange) || empty($pRange) || !is_array($pRange[0])) {
throw new PHPExcel_Exception('Range does not contain any information');
}
// Build range
$imploded = array();
$counter = count($pRange);
for ($i = 0; $i < $counter; ++$i) {
$pRange[$i] = implode(':', $pRange[$i]);
}
$imploded = implode(',', $pRange);
return $imploded;
}