Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 263 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DefinedName:: (16 methods):
  __construct()
  createInstance()
  testIfFormula()
  getName()
  setName()
  getWorksheet()
  setWorksheet()
  getValue()
  setValue()
  getLocalOnly()
  setLocalOnly()
  getScope()
  setScope()
  isFormula()
  resolveName()
  __clone()


Class: DefinedName  - X-Ref

__construct(string $name,?Worksheet $worksheet = null,?string $value = null,bool $localOnly = false,?Worksheet $scope = null)   X-Ref
Create a new Defined Name.


createInstance(string $name,?Worksheet $worksheet = null,?string $value = null,bool $localOnly = false,?Worksheet $scope = null)   X-Ref
Create a new defined name, either a range or a formula.


testIfFormula(string $value)   X-Ref
No description

getName()   X-Ref
Get name.


setName(string $name)   X-Ref
Set name.


getWorksheet()   X-Ref
Get worksheet.


setWorksheet(?Worksheet $value)   X-Ref
Set worksheet.


getValue()   X-Ref
Get range or formula value.


setValue(string $value)   X-Ref
Set range or formula  value.


getLocalOnly()   X-Ref
Get localOnly.


setLocalOnly(bool $value)   X-Ref
Set localOnly.


getScope()   X-Ref
Get scope.


setScope(?Worksheet $value)   X-Ref
Set scope.


isFormula()   X-Ref
Identify whether this is a named range or a named formula.


resolveName(string $pDefinedName, Worksheet $pSheet)   X-Ref
Resolve a named range to a regular cell range or formula.


__clone()   X-Ref
Implement PHP __clone to create a deep clone, not just a shallow copy.