ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Helper class to manipulate cell coordinates. More...
Static Public Member Functions | |
static | coordinateFromString ($pCoordinateString) |
Coordinate from string. More... | |
static | indexesFromString (string $coordinates) |
Get indexes from a string coordinates. More... | |
static | coordinateIsRange ($coord) |
Checks if a coordinate represents a range of cells. More... | |
static | absoluteReference ($pCoordinateString) |
Make string row, column or cell coordinate absolute. More... | |
static | absoluteCoordinate ($pCoordinateString) |
Make string coordinate absolute. More... | |
static | splitRange ($pRange) |
Split range into coordinate strings. More... | |
static | buildRange (array $pRange) |
Build range from coordinate strings. More... | |
static | rangeBoundaries ($pRange) |
Calculate range boundaries. More... | |
static | rangeDimension ($pRange) |
Calculate range dimension. More... | |
static | getRangeBoundaries ($pRange) |
Calculate range boundaries. More... | |
static | columnIndexFromString ($pString) |
Column index from string. More... | |
static | stringFromColumnIndex ($columnIndex) |
String from column index. More... | |
static | extractAllCellReferencesInRange ($cellRange) |
Extract all cell references in range, which may be comprised of multiple cell ranges. More... | |
static | mergeRangesInCollection (array $pCoordCollection) |
Convert an associative array of single cell coordinates to values to an associative array of cell ranges to values. More... | |
Data Fields | |
const | A1_COORDINATE_REGEX = '/^(?<absolute_col>\$?)(?<col_ref>[A-Z]{1,3})(?<absolute_row>\$?)(?<row_ref>\d{1,7})$/i' |
const | DEFAULT_RANGE = 'A1:A1' |
Static Private Member Functions | |
static | processRangeSetOperators (array $operators, array $cells) |
static | sortCellReferenceArray (array $cellList) |
static | getReferencesForCellBlock ($cellBlock) |
Get all cell references for an individual cell block. More... | |
static | getCellBlocksFromRangeString ($rangeString) |
Get the individual cell blocks from a range string, removing any $ characters. More... | |
static | validateRange ($cellBlock, $startColumnIndex, $endColumnIndex, $currentRow, $endRow) |
Check that the given range is valid, i.e. More... | |
Helper class to manipulate cell coordinates.
Columns indexes and rows are always based on 1, not on 0. This match the behavior that Excel users are used to, and also match the Excel functions COLUMN()
and ROW()
.
Definition at line 14 of file Coordinate.php.
|
static |
Make string coordinate absolute.
string | $pCoordinateString | e.g. 'A1' |
Definition at line 111 of file Coordinate.php.
References $row, and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\extractSheetTitle().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\DefinedNames\writeNamedRangeForAutofilter().
|
static |
Make string row, column or cell coordinate absolute.
string | $pCoordinateString | e.g. 'A' or '1' or 'A1' Note that this value can be a row or column reference as well as a cell reference |
Definition at line 82 of file Coordinate.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\extractSheetTitle().
|
static |
Build range from coordinate strings.
array | $pRange | Array containg one or more arrays containing one or two coordinate strings |
Definition at line 163 of file Coordinate.php.
References $i.
Referenced by PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellRange().
|
static |
Column index from string.
string | $pString | eg 'A' |
Definition at line 265 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\ColumnCellIterator\__construct(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\__construct(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\adjustEndCellColumnForWidth(), PhpOffice\PhpSpreadsheet\Writer\Html\buildCssPerSheet(), PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpansOmitRows(), PhpOffice\PhpSpreadsheet\ReferenceHelper\cellAddressInDeleteRange(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\cellColumn(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\RowColumnInformation\COLUMN(), PhpOffice\PhpSpreadsheet\Cell\Cell\compareCells(), PhpOffice\PhpSpreadsheet\Cell\AddressHelper\convertToR1C1(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForCharts(), PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\garbageCollect(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getColumnDimension(), PhpOffice\PhpSpreadsheet\Shared\Xls\getDistanceX(), PhpOffice\PhpSpreadsheet\Collection\Cells\getHighestColumn(), PhpOffice\PhpSpreadsheet\ReferenceHelper\insertNewBefore(), PhpOffice\PhpSpreadsheet\Cell\Cell\isInRange(), PhpOffice\PhpSpreadsheet\Reader\Ods\load(), PhpOffice\PhpSpreadsheet\Reader\Xml\load(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\OFFSET(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellAddressB(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\removeColumn(), PhpOffice\PhpSpreadsheet\Worksheet\RowCellIterator\resetEnd(), PhpOffice\PhpSpreadsheet\Worksheet\ColumnIterator\resetEnd(), PhpOffice\PhpSpreadsheet\Worksheet\RowCellIterator\resetStart(), PhpOffice\PhpSpreadsheet\Worksheet\ColumnIterator\resetStart(), PhpOffice\PhpSpreadsheet\Worksheet\RowCellIterator\seek(), PhpOffice\PhpSpreadsheet\Worksheet\ColumnIterator\seek(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\setRange(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\shrinkRangeToFit(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\testColumnInRange(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellReferencesAllWorksheets(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateColumnRangesAllWorksheets(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateFormulaReferences(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateSingleCellReference(), PhpOffice\PhpSpreadsheet\Writer\Ods\Settings\write(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\writeAllDefinedNamesBiff8(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeBreaks(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeBreaks(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeCellMerge(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeCols(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeRows(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeSelection(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeSheetData(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeSheetViews().
|
static |
Coordinate from string.
string | $pCoordinateString | eg: 'A1' |
Definition at line 32 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\ReferenceHelper\adjustColumnDimensions(), PhpOffice\PhpSpreadsheet\ReferenceHelper\adjustRowDimensions(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\ReferenceHelper\cellAddressInDeleteRange(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\createNewCell(), PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForCharts(), PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractNamedRange(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\freezePane(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\fromArray(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive(), PhpOffice\PhpSpreadsheet\Reader\Xls\load(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\OFFSET(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellAddressB(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellRange(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateFormulaReferences(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateSingleCellReference(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeBreaks(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeBreaks(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeCellMerge(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeSelection(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeSheetData(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeSheetViews().
|
static |
Checks if a coordinate represents a range of cells.
string | $coord | eg: 'A1' or 'A1:A2' or 'A1:A2,C1:C2' |
Definition at line 69 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\freezePane(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getComment(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getWorksheetAndCoordinate(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\setSelectedCells(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellRange(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellReference(), and PhpOffice\PhpSpreadsheet\ReferenceHelper\updateSingleCellReference().
|
static |
Extract all cell references in range, which may be comprised of multiple cell ranges.
string | $cellRange | Range: e.g. 'A1' or 'A1:C10' or 'A1:E10,A20:E25' or 'A1:E5 C3:G7' or 'A1:C1,A3:C3 B1:C3' |
Definition at line 338 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\calculateColumnWidths(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractCellRange(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractNamedRange(), PhpOffice\PhpSpreadsheet\NamedRange\getCellsInRange(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\DataValidations\load(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\mergeCells(), PhpOffice\PhpSpreadsheet\Reader\Html\processDomElementThTd(), PhpOffice\PhpSpreadsheet\Reader\Xls\readDataValidation(), PhpOffice\PhpSpreadsheet\Reader\Xls\readHyperLink(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Hyperlinks\setHyperlink().
|
staticprivate |
Get the individual cell blocks from a range string, removing any $ characters.
then splitting by operators and returning an array with ranges and operators.
string | $rangeString |
Definition at line 540 of file Coordinate.php.
|
static |
Calculate range boundaries.
string | $pRange | Cell range (e.g. A1:A1) |
Definition at line 238 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xls\includeCellRangeFiltered(), and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\shrinkRangeToFit().
|
staticprivate |
Get all cell references for an individual cell block.
string | $cellBlock | A cell range e.g. A4:B5 |
Definition at line 399 of file Coordinate.php.
|
static |
Get indexes from a string coordinates.
string | $coordinates | eg: 'A1', '$B$12' |
Definition at line 52 of file Coordinate.php.
References $row.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\__construct(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\castToFormula(), PhpOffice\PhpSpreadsheet\Writer\Xls\Escher\close(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\createNewCell(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData(), PhpOffice\PhpSpreadsheet\ReferenceHelper\insertNewBefore(), PhpOffice\PhpSpreadsheet\Shared\Xls\oneAnchor2twoAnchor(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellRangeAddressB(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\writeAllDefinedNamesBiff8(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeBIFF8CellRangeAddressFixed(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Drawing\writeChart(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Drawing\writeDrawing(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeMergedCells(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writePanes(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Comments\writeVMLComment().
|
static |
Convert an associative array of single cell coordinates to values to an associative array of cell ranges to values.
Only adjacent cell coordinates with the same value will be merged. If the value is an object, it must implement the method getHashCode().
For example, this function converts:
[ 'A1' => 'x', 'A2' => 'x', 'A3' => 'x', 'A4' => 'y' ]
to:
[ 'A1:A3' => 'x', 'A4' => 'y' ]
array | $pCoordCollection | associative array mapping coordinates to values |
Definition at line 463 of file Coordinate.php.
References $row.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeDataValidations().
|
staticprivate |
Definition at line 359 of file Coordinate.php.
|
static |
Calculate range boundaries.
string | $pRange | Cell range (e.g. A1:A1) |
Definition at line 187 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\buildWorksheetEschers(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateConditionalStyle(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateStyle(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\getColumnByOffset(), PhpOffice\PhpSpreadsheet\ReferenceHelper\insertNewBefore(), PhpOffice\PhpSpreadsheet\Cell\Cell\isInRange(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\rangeToArray(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\setRange(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\showHideRows(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\testColumnInRange(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\writeAllDefinedNamesBiff8(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeAutoFilterInfo(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeCFHeader().
|
static |
Calculate range dimension.
string | $pRange | Cell range (e.g. A1:A1) |
Definition at line 222 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\calculateColumnWidths(), and PhpOffice\PhpSpreadsheet\Chart\DataSeriesValues\refresh().
|
staticprivate |
|
static |
Split range into coordinate strings.
string | $pRange | e.g. 'B4:D9' or 'B4:D9,H2:O11' or 'B4' |
Definition at line 140 of file Coordinate.php.
References $i.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractNamedRange(), PhpOffice\PhpSpreadsheet\Cell\Cell\isMergeRangeValueCell(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\setSelectedCells(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellRange(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\writeAllDefinedNamesBiff8(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet\writeAutoFilter(), PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeCellMerge(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeMergedCells(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DefinedNames\writeNamedRangeForAutofilter(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\writeSelection().
|
static |
String from column index.
int | $columnIndex | Column index (A = 1) |
Definition at line 313 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\__construct(), PhpOffice\PhpSpreadsheet\Reader\Slk\addFonts(), PhpOffice\PhpSpreadsheet\Reader\Slk\addFormats(), PhpOffice\PhpSpreadsheet\Worksheet\PageSetup\addPrintAreaByColumnAndRow(), PhpOffice\PhpSpreadsheet\Reader\Slk\addStyle(), PhpOffice\PhpSpreadsheet\Reader\Slk\addWidth(), PhpOffice\PhpSpreadsheet\Style\Style\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Xls\buildWorksheetEschers(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\cellExistsByColumnAndRow(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\PageSetup\columnBreaks(), PhpOffice\PhpSpreadsheet\Cell\AddressHelper\convertToA1(), PhpOffice\PhpSpreadsheet\Worksheet\ColumnIterator\current(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateConditionalStyle(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\duplicateStyle(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Address\formatAsA1(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\freezePaneByColumnAndRow(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRow(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellCss(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getCellOrNull(), PhpOffice\PhpSpreadsheet\Worksheet\AutoFilter\getColumnByOffset(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getColumnDimensionByColumn(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getCommentByColumnAndRow(), PhpOffice\PhpSpreadsheet\Shared\Xls\getDistanceX(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive(), PhpOffice\PhpSpreadsheet\Collection\Cells\getHighestColumn(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getHighestColumn(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getStyleByColumnAndRow(), PhpOffice\PhpSpreadsheet\ReferenceHelper\insertNewBefore(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\insertNewColumnBeforeByIndex(), PhpOffice\PhpSpreadsheet\Worksheet\RowCellIterator\key(), PhpOffice\PhpSpreadsheet\Worksheet\ColumnIterator\key(), PhpOffice\PhpSpreadsheet\Reader\Slk\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Ods\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Gnumeric\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Xml\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Csv\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Xls\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\listWorksheetNames(), PhpOffice\PhpSpreadsheet\Reader\Ods\load(), PhpOffice\PhpSpreadsheet\Reader\Xml\load(), PhpOffice\PhpSpreadsheet\Reader\Gnumeric\loadIntoExisting(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\mergeCellsByColumnAndRow(), PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Offset\OFFSET(), PhpOffice\PhpSpreadsheet\Shared\Xls\oneAnchor2twoAnchor(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\SheetViews\pane(), PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\positionImage(), PhpOffice\PhpSpreadsheet\Reader\Slk\processCRecord(), PhpOffice\PhpSpreadsheet\Reader\Slk\processFormula(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\protectCellsByColumnAndRow(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\rangeToArray(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF5CellRangeAddressFixed(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellAddress(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellAddressB(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellRangeAddress(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellRangeAddressB(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBIFF8CellRangeAddressFixed(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBlank(), PhpOffice\PhpSpreadsheet\Reader\Xls\readBoolErr(), PhpOffice\PhpSpreadsheet\Reader\Xls\Escher\readClientAnchor(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\ColumnAndRowAttributes\readColumnAttributes(), PhpOffice\PhpSpreadsheet\Reader\Xls\readFormula(), PhpOffice\PhpSpreadsheet\Reader\Xls\readLabel(), PhpOffice\PhpSpreadsheet\Reader\Xls\readLabelSst(), PhpOffice\PhpSpreadsheet\Reader\Xls\readMulBlank(), PhpOffice\PhpSpreadsheet\Reader\Xls\readMulRk(), PhpOffice\PhpSpreadsheet\Reader\Xls\readNumber(), PhpOffice\PhpSpreadsheet\Reader\Xls\readPane(), PhpOffice\PhpSpreadsheet\Reader\Xls\readRk(), PhpOffice\PhpSpreadsheet\Reader\Gnumeric\Styles\readStyleRange(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\removeColumn(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\removeColumnByIndex(), PhpOffice\PhpSpreadsheet\Worksheet\RowCellIterator\resetStart(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\setAutoFilterByColumnAndRow(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\setBreakByColumnAndRow(), PhpOffice\PhpSpreadsheet\Reader\Gnumeric\setColumnInvisible(), PhpOffice\PhpSpreadsheet\Reader\Gnumeric\setColumnWidth(), PhpOffice\PhpSpreadsheet\Worksheet\PageSetup\setPrintAreaByColumnAndRow(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\setSelectedCellByColumnAndRow(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\shrinkRangeToFit(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\unmergeCellsByColumnAndRow(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\unprotectCellsByColumnAndRow(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateCellReferencesAllWorksheets(), PhpOffice\PhpSpreadsheet\ReferenceHelper\updateColumnRangesAllWorksheets(), and PhpOffice\PhpSpreadsheet\ReferenceHelper\updateSingleCellReference().
|
staticprivate |
Check that the given range is valid, i.e.
that the start column and row are not greater than the end column and row.
string | $cellBlock | The original range, for displaying a meaningful error message |
int | $startColumnIndex | |
int | $endColumnIndex | |
int | $currentRow | |
int | $endRow |
Definition at line 564 of file Coordinate.php.
const PhpOffice\PhpSpreadsheet\Cell\Coordinate::A1_COORDINATE_REGEX = '/^(?<absolute_col>\$?)(?<col_ref>[A-Z]{1,3})(?<absolute_row>\$?)(?<row_ref>\d{1,7})$/i' |
Definition at line 16 of file Coordinate.php.
Referenced by PhpOffice\PhpSpreadsheet\Cell\AddressHelper\convertToR1C1().
const PhpOffice\PhpSpreadsheet\Cell\Coordinate::DEFAULT_RANGE = 'A1:A1' |
Definition at line 23 of file Coordinate.php.