ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (string $name, ?Worksheet $worksheet=null, ?string $value=null, bool $localOnly=false, ?Worksheet $scope=null) | |
Create a new Defined Name. More... | |
getName () | |
Get name. More... | |
setName (string $name) | |
Set name. More... | |
getWorksheet () | |
Get worksheet. More... | |
setWorksheet (?Worksheet $value) | |
Set worksheet. More... | |
getValue () | |
Get range or formula value. More... | |
setValue (string $value) | |
Set range or formula value. More... | |
getLocalOnly () | |
Get localOnly. More... | |
setLocalOnly (bool $value) | |
Set localOnly. More... | |
getScope () | |
Get scope. More... | |
setScope (?Worksheet $value) | |
Set scope. More... | |
isFormula () | |
Identify whether this is a named range or a named formula. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
Static Public Member Functions | |
static | createInstance (string $name, ?Worksheet $worksheet=null, ?string $value=null, bool $localOnly=false, ?Worksheet $scope=null) |
Create a new defined name, either a range or a formula. More... | |
static | testIfFormula (string $value) |
static | resolveName (string $pDefinedName, Worksheet $pSheet, string $sheetName='') |
Resolve a named range to a regular cell range or formula. More... | |
Protected Attributes | |
const | REGEXP_IDENTIFY_FORMULA = '[^_\p{N}\p{L}:, \$\'!]' |
$name | |
$worksheet | |
$value | |
$localOnly | |
$scope | |
$isFormula | |
Definition at line 7 of file DefinedName.php.
PhpOffice\PhpSpreadsheet\DefinedName::__construct | ( | string | $name, |
?Worksheet | $worksheet = null , |
||
?string | $value = null , |
||
bool | $localOnly = false , |
||
?Worksheet | $scope = null |
||
) |
Create a new Defined Name.
Definition at line 56 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$localOnly, PhpOffice\PhpSpreadsheet\DefinedName\$name, PhpOffice\PhpSpreadsheet\DefinedName\$scope, PhpOffice\PhpSpreadsheet\DefinedName\$value, PhpOffice\PhpSpreadsheet\DefinedName\$worksheet, and PhpOffice\PhpSpreadsheet\DefinedName\isFormula().
PhpOffice\PhpSpreadsheet\DefinedName::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 261 of file DefinedName.php.
References $key, and PhpOffice\PhpSpreadsheet\DefinedName\$value.
|
static |
Create a new defined name, either a range or a formula.
Definition at line 84 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$isFormula, PhpOffice\PhpSpreadsheet\DefinedName\$localOnly, PhpOffice\PhpSpreadsheet\DefinedName\$scope, PhpOffice\PhpSpreadsheet\DefinedName\$value, and PhpOffice\PhpSpreadsheet\DefinedName\$worksheet.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Ods\DefinedNames\addDefinedName(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive(), PhpOffice\PhpSpreadsheet\Reader\Xml\load(), and PhpOffice\PhpSpreadsheet\Reader\Gnumeric\processDefinedNames().
PhpOffice\PhpSpreadsheet\DefinedName::getLocalOnly | ( | ) |
Get localOnly.
Definition at line 198 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$localOnly.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\DefinedNames\writeDefinedName().
PhpOffice\PhpSpreadsheet\DefinedName::getName | ( | ) |
Get name.
Definition at line 127 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$name.
Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addDefinedName(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\DefinedNames\writeDefinedName(), PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedFormula(), and PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedRange().
PhpOffice\PhpSpreadsheet\DefinedName::getScope | ( | ) |
Get scope.
Definition at line 217 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$scope.
Referenced by PhpOffice\PhpSpreadsheet\Spreadsheet\addDefinedName(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\DefinedNames\writeDefinedName().
PhpOffice\PhpSpreadsheet\DefinedName::getValue | ( | ) |
Get range or formula value.
Definition at line 180 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
Referenced by PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\parseDefinedNameValue(), PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedFormula(), and PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedRange().
PhpOffice\PhpSpreadsheet\DefinedName::getWorksheet | ( | ) |
Get worksheet.
Definition at line 162 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$worksheet.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\convertAddress(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Writer\Xls\Workbook\parseDefinedNameValue(), PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedFormula(), and PhpOffice\PhpSpreadsheet\Writer\Ods\NamedExpressions\writeNamedRange().
PhpOffice\PhpSpreadsheet\DefinedName::isFormula | ( | ) |
Identify whether this is a named range or a named formula.
Definition at line 236 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$isFormula.
Referenced by PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\evaluateDefinedName(), PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedFormulae(), and PhpOffice\PhpSpreadsheet\Spreadsheet\getNamedRanges().
|
static |
Resolve a named range to a regular cell range or formula.
Definition at line 244 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getParent().
Referenced by PhpOffice\PhpSpreadsheet\Calculation\LookupRef\Helpers\extractCellAddresses(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\extractNamedRange(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\processTokenStack(), and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\validateNamedRange().
PhpOffice\PhpSpreadsheet\DefinedName::setLocalOnly | ( | bool | $value | ) |
Set localOnly.
Definition at line 206 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
PhpOffice\PhpSpreadsheet\DefinedName::setName | ( | string | $name | ) |
Set name.
Definition at line 135 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$name, and PhpOffice\PhpSpreadsheet\ReferenceHelper\getInstance().
PhpOffice\PhpSpreadsheet\DefinedName::setScope | ( | ?Worksheet | $value | ) |
Set scope.
Definition at line 225 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
PhpOffice\PhpSpreadsheet\DefinedName::setValue | ( | string | $value | ) |
Set range or formula value.
Definition at line 188 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
PhpOffice\PhpSpreadsheet\DefinedName::setWorksheet | ( | ?Worksheet | $value | ) |
Set worksheet.
Definition at line 170 of file DefinedName.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
|
static |
Definition at line 100 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\getFromZipArchive().
|
protected |
Definition at line 51 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), and PhpOffice\PhpSpreadsheet\DefinedName\isFormula().
|
protected |
Definition at line 37 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\NamedFormula\__construct(), PhpOffice\PhpSpreadsheet\NamedRange\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), and PhpOffice\PhpSpreadsheet\DefinedName\getLocalOnly().
|
protected |
Definition at line 16 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\getName(), and PhpOffice\PhpSpreadsheet\DefinedName\setName().
|
protected |
Definition at line 44 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\NamedFormula\__construct(), PhpOffice\PhpSpreadsheet\NamedRange\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), and PhpOffice\PhpSpreadsheet\DefinedName\getScope().
|
protected |
Definition at line 30 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\DefinedName\__clone(), PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), PhpOffice\PhpSpreadsheet\NamedRange\getCellsInRange(), PhpOffice\PhpSpreadsheet\NamedFormula\getFormula(), PhpOffice\PhpSpreadsheet\NamedRange\getRange(), PhpOffice\PhpSpreadsheet\DefinedName\getValue(), PhpOffice\PhpSpreadsheet\DefinedName\setLocalOnly(), PhpOffice\PhpSpreadsheet\DefinedName\setScope(), PhpOffice\PhpSpreadsheet\DefinedName\setValue(), and PhpOffice\PhpSpreadsheet\DefinedName\setWorksheet().
|
protected |
Definition at line 23 of file DefinedName.php.
Referenced by PhpOffice\PhpSpreadsheet\NamedFormula\__construct(), PhpOffice\PhpSpreadsheet\NamedRange\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\__construct(), PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), and PhpOffice\PhpSpreadsheet\DefinedName\getWorksheet().
|
protected |
Definition at line 9 of file DefinedName.php.