ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (string $name, ?Worksheet $worksheet=null, ?string $formula=null, bool $localOnly=false, ?Worksheet $scope=null) | |
Create a new Named Formula. More... | |
getFormula () | |
Get the formula value. More... | |
setFormula (string $formula) | |
Set the formula value. More... | |
![]() | |
__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... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
const | REGEXP_IDENTIFY_FORMULA = '[^_\p{N}\p{L}:, \$\'!]' |
$name | |
$worksheet | |
$value | |
$localOnly | |
$scope | |
$isFormula | |
Definition at line 7 of file NamedFormula.php.
PhpOffice\PhpSpreadsheet\NamedFormula::__construct | ( | string | $name, |
?Worksheet | $worksheet = null , |
||
?string | $formula = null , |
||
bool | $localOnly = false , |
||
?Worksheet | $scope = null |
||
) |
Create a new Named Formula.
Definition at line 12 of file NamedFormula.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$localOnly, PhpOffice\PhpSpreadsheet\DefinedName\$scope, and PhpOffice\PhpSpreadsheet\DefinedName\$worksheet.
PhpOffice\PhpSpreadsheet\NamedFormula::getFormula | ( | ) |
Get the formula value.
Definition at line 29 of file NamedFormula.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
PhpOffice\PhpSpreadsheet\NamedFormula::setFormula | ( | string | $formula | ) |
Set the formula value.
Definition at line 37 of file NamedFormula.php.