ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (string $name, ?Worksheet $worksheet=null, string $range='A1', bool $localOnly=false, ?Worksheet $scope=null) | |
Create a new Named Range. More... | |
getRange () | |
Get the range value. More... | |
setRange (string $range) | |
Set the range value. More... | |
getCellsInRange () | |
![]() | |
__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 8 of file NamedRange.php.
PhpOffice\PhpSpreadsheet\NamedRange::__construct | ( | string | $name, |
?Worksheet | $worksheet = null , |
||
string | $range = 'A1' , |
||
bool | $localOnly = false , |
||
?Worksheet | $scope = null |
||
) |
Create a new Named Range.
Definition at line 13 of file NamedRange.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$localOnly, PhpOffice\PhpSpreadsheet\DefinedName\$scope, and PhpOffice\PhpSpreadsheet\DefinedName\$worksheet.
PhpOffice\PhpSpreadsheet\NamedRange::getCellsInRange | ( | ) |
Definition at line 46 of file NamedRange.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value, and PhpOffice\PhpSpreadsheet\Cell\Coordinate\extractAllCellReferencesInRange().
PhpOffice\PhpSpreadsheet\NamedRange::getRange | ( | ) |
Get the range value.
Definition at line 29 of file NamedRange.php.
References PhpOffice\PhpSpreadsheet\DefinedName\$value.
PhpOffice\PhpSpreadsheet\NamedRange::setRange | ( | string | $range | ) |
Set the range value.
Definition at line 37 of file NamedRange.php.