ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
insertNewBefore ($pBefore='A1', $pNumCols=0, $pNumRows=0, PHPExcel_Worksheet $pSheet=NULL) | |
Insert a new column or row, updating all possible related data. More... | |
updateFormulaReferences ($pFormula='', $pBefore='A1', $pNumCols=0, $pNumRows=0, $sheetName='') | |
Update references within formulas. More... | |
updateCellReference ($pCellRange='A1', $pBefore='A1', $pNumCols=0, $pNumRows=0) | |
Update cell reference. More... | |
updateNamedFormulas (PHPExcel $pPhpExcel, $oldName='', $newName='') | |
Update named formulas (i.e. More... | |
__clone () | |
__clone implementation. More... | |
Static Public Member Functions | |
static | getInstance () |
Get an instance of this class. More... | |
static | columnSort ($a, $b) |
Compare two column addresses Intended for use as a Callback function for sorting column addresses by column. More... | |
static | columnReverseSort ($a, $b) |
Compare two column addresses Intended for use as a Callback function for reverse sorting column addresses by column. More... | |
static | cellSort ($a, $b) |
Compare two cell addresses Intended for use as a Callback function for sorting cell addresses by column and row. More... | |
static | cellReverseSort ($a, $b) |
Compare two cell addresses Intended for use as a Callback function for sorting cell addresses by column and row. More... | |
Data Fields | |
const | REFHELPER_REGEXP_CELLREF = '((\w*|\'[^!]*\')!)?(?<![:a-z\$])(\$?[a-z]{1,3}\$?\d+)(?=[^:!\d\'])' |
Constants. More... | |
const | REFHELPER_REGEXP_CELLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}\$?\d+):(\$?[a-z]{1,3}\$?\d+)' |
const | REFHELPER_REGEXP_ROWRANGE = '((\w*|\'[^!]*\')!)?(\$?\d+):(\$?\d+)' |
const | REFHELPER_REGEXP_COLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}):(\$?[a-z]{1,3})' |
Protected Member Functions | |
__construct () | |
Create a new PHPExcel_ReferenceHelper. More... | |
_adjustPageBreaks (PHPExcel_Worksheet $pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update page breaks when inserting/deleting rows/columns. More... | |
_adjustComments ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update cell comments when inserting/deleting rows/columns. More... | |
_adjustHyperlinks ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update hyperlinks when inserting/deleting rows/columns. More... | |
_adjustDataValidations ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update data validations when inserting/deleting rows/columns. More... | |
_adjustMergeCells ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update merged cells when inserting/deleting rows/columns. More... | |
_adjustProtectedCells ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update protected cells when inserting/deleting rows/columns. More... | |
_adjustColumnDimensions ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update column dimensions when inserting/deleting rows/columns. More... | |
_adjustRowDimensions ($pSheet, $pBefore, $beforeColumnIndex, $pNumCols, $beforeRow, $pNumRows) | |
Update row dimensions when inserting/deleting rows/columns. More... | |
Private Member Functions | |
_updateCellRange ($pCellRange='A1:A1', $pBefore='A1', $pNumCols=0, $pNumRows=0) | |
Update cell range. More... | |
_updateSingleCellReference ($pCellReference='A1', $pBefore='A1', $pNumCols=0, $pNumRows=0) | |
Update single cell reference. More... | |
Static Private Member Functions | |
static | cellAddressInDeleteRange ($cellAddress, $beforeRow, $pNumRows, $beforeColumnIndex, $pNumCols) |
Test whether a cell address falls within a defined range of cells. More... | |
Static Private Attributes | |
static | $_instance |
Definition at line 36 of file ReferenceHelper.php.
|
protected |
|
final |
__clone implementation.
Cloning should not be allowed in a Singleton!
PHPExcel_Exception |
Definition at line 919 of file ReferenceHelper.php.
|
protected |
Update column dimensions when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 325 of file ReferenceHelper.php.
References PHPExcel_Cell\coordinateFromString(), and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update cell comments when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 201 of file ReferenceHelper.php.
References array, and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update data validations when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 254 of file ReferenceHelper.php.
References array, and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update hyperlinks when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 228 of file ReferenceHelper.php.
References array, and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update merged cells when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 279 of file ReferenceHelper.php.
References array, and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update page breaks when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 167 of file ReferenceHelper.php.
References array, PHPExcel_Worksheet\BREAK_NONE, PHPExcel_Worksheet\getBreaks(), PHPExcel_Worksheet\setBreak(), and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update protected cells when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 300 of file ReferenceHelper.php.
References array, and updateCellReference().
Referenced by insertNewBefore().
|
protected |
Update row dimensions when inserting/deleting rows/columns.
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
string | $pBefore | Insert/Delete before this cell address (e.g. 'A1') |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
Definition at line 350 of file ReferenceHelper.php.
References PHPExcel_Cell\coordinateFromString(), and updateCellReference().
Referenced by insertNewBefore().
|
private |
Update cell range.
string | $pCellRange | Cell range (e.g. 'B2:D4', 'B:C' or '2:3') |
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to increment |
int | $pNumRows | Number of rows to increment |
PHPExcel_Exception |
Definition at line 846 of file ReferenceHelper.php.
References $r, _updateSingleCellReference(), PHPExcel_Cell\buildRange(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\splitRange().
Referenced by updateCellReference().
|
private |
Update single cell reference.
string | $pCellReference | Single cell reference |
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to increment |
int | $pNumRows | Number of rows to increment |
PHPExcel_Exception |
Definition at line 883 of file ReferenceHelper.php.
References PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\stringFromColumnIndex().
Referenced by _updateCellRange(), and updateCellReference().
|
staticprivate |
Test whether a cell address falls within a defined range of cells.
string | $cellAddress | Address of the cell we're testing |
integer | $beforeRow | Number of the row we're inserting/deleting before |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
integer | $beforeColumnIndex | Index number of the column we're inserting/deleting before |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
Definition at line 141 of file ReferenceHelper.php.
References PHPExcel_Cell\columnIndexFromString(), and PHPExcel_Cell\coordinateFromString().
|
static |
Compare two cell addresses Intended for use as a Callback function for sorting cell addresses by column and row.
string | $a | First cell to test (e.g. 'AA1') |
string | $b | Second cell to test (e.g. 'Z1') |
Definition at line 121 of file ReferenceHelper.php.
|
static |
Compare two cell addresses Intended for use as a Callback function for sorting cell addresses by column and row.
string | $a | First cell to test (e.g. 'AA1') |
string | $b | Second cell to test (e.g. 'Z1') |
Definition at line 103 of file ReferenceHelper.php.
|
static |
Compare two column addresses Intended for use as a Callback function for reverse sorting column addresses by column.
string | $a | First column to test (e.g. 'AA') |
string | $b | Second column to test (e.g. 'Z') |
Definition at line 91 of file ReferenceHelper.php.
|
static |
Compare two column addresses Intended for use as a Callback function for sorting column addresses by column.
string | $a | First column to test (e.g. 'AA') |
string | $b | Second column to test (e.g. 'Z') |
Definition at line 79 of file ReferenceHelper.php.
|
static |
Get an instance of this class.
Definition at line 57 of file ReferenceHelper.php.
Referenced by PHPExcel_Reader_Excel2007\__construct(), PHPExcel_Reader_Gnumeric\__construct(), PHPExcel_Worksheet\insertNewColumnBefore(), PHPExcel_Worksheet\insertNewRowBefore(), PHPExcel_Worksheet\removeColumn(), PHPExcel_Worksheet\removeRow(), PHPExcel_NamedRange\setName(), and PHPExcel_Worksheet\setTitle().
PHPExcel_ReferenceHelper::insertNewBefore | ( | $pBefore = 'A1' , |
|
$pNumCols = 0 , |
|||
$pNumRows = 0 , |
|||
PHPExcel_Worksheet | $pSheet = NULL |
||
) |
Insert a new column or row, updating all possible related data.
string | $pBefore | Insert before this cell address (e.g. 'A1') |
integer | $pNumCols | Number of columns to insert/delete (negative values indicate deletion) |
integer | $pNumRows | Number of rows to insert/delete (negative values indicate deletion) |
PHPExcel_Worksheet | $pSheet | The worksheet that we're editing |
PHPExcel_Exception |
Definition at line 383 of file ReferenceHelper.php.
References $autoFilter, $column, $conditionalStyles, $objDrawing, $row, _adjustColumnDimensions(), _adjustComments(), _adjustDataValidations(), _adjustHyperlinks(), _adjustMergeCells(), _adjustPageBreaks(), _adjustProtectedCells(), _adjustRowDimensions(), array, PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), PHPExcel_Cell\rangeBoundaries(), PHPExcel_Cell\stringFromColumnIndex(), PHPExcel_Cell_DataType\TYPE_FORMULA, PHPExcel_Cell_DataType\TYPE_NULL, updateCellReference(), and updateFormulaReferences().
PHPExcel_ReferenceHelper::updateCellReference | ( | $pCellRange = 'A1' , |
|
$pBefore = 'A1' , |
|||
$pNumCols = 0 , |
|||
$pNumRows = 0 |
|||
) |
Update cell reference.
string | $pCellRange | Cell range |
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to increment |
int | $pNumRows | Number of rows to increment |
PHPExcel_Exception |
Definition at line 792 of file ReferenceHelper.php.
References _updateCellRange(), and _updateSingleCellReference().
Referenced by _adjustColumnDimensions(), _adjustComments(), _adjustDataValidations(), _adjustHyperlinks(), _adjustMergeCells(), _adjustPageBreaks(), _adjustProtectedCells(), _adjustRowDimensions(), insertNewBefore(), and updateFormulaReferences().
PHPExcel_ReferenceHelper::updateFormulaReferences | ( | $pFormula = '' , |
|
$pBefore = 'A1' , |
|||
$pNumCols = 0 , |
|||
$pNumRows = 0 , |
|||
$sheetName = '' |
|||
) |
Update references within formulas.
string | $pFormula | Formula to update |
int | $pBefore | Insert before this one |
int | $pNumCols | Number of columns to insert |
int | $pNumRows | Number of rows to insert |
string | $sheetName | Worksheet name/title |
PHPExcel_Exception |
Definition at line 653 of file ReferenceHelper.php.
References $column, $row, array, PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and updateCellReference().
Referenced by insertNewBefore().
PHPExcel_ReferenceHelper::updateNamedFormulas | ( | PHPExcel | $pPhpExcel, |
$oldName = '' , |
|||
$newName = '' |
|||
) |
Update named formulas (i.e.
containing worksheet references / named ranges)
PHPExcel | $pPhpExcel | Object to update |
string | $oldName | Old name (name to replace) |
string | $newName | New name |
Definition at line 816 of file ReferenceHelper.php.
References PHPExcel\getWorksheetIterator(), and PHPExcel_Cell_DataType\TYPE_FORMULA.
|
staticprivate |
Definition at line 50 of file ReferenceHelper.php.
const PHPExcel_ReferenceHelper::REFHELPER_REGEXP_CELLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}\$?\d+):(\$?[a-z]{1,3}\$?\d+)' |
Definition at line 41 of file ReferenceHelper.php.
const PHPExcel_ReferenceHelper::REFHELPER_REGEXP_CELLREF = '((\w*|\'[^!]*\')!)?(?<![:a-z\$])(\$?[a-z]{1,3}\$?\d+)(?=[^:!\d\'])' |
const PHPExcel_ReferenceHelper::REFHELPER_REGEXP_COLRANGE = '((\w*|\'[^!]*\')!)?(\$?[a-z]{1,3}):(\$?[a-z]{1,3})' |
Definition at line 43 of file ReferenceHelper.php.
const PHPExcel_ReferenceHelper::REFHELPER_REGEXP_ROWRANGE = '((\w*|\'[^!]*\')!)?(\$?\d+):(\$?\d+)' |
Definition at line 42 of file ReferenceHelper.php.