86        if (($pName === NULL) || ($pWorksheet === NULL) || ($pRange === NULL)) {
 
   91        $this->_name            = $pName;
 
   92        $this->_worksheet       = $pWorksheet;
 
   93        $this->_range           = $pRange;
 
   94        $this->_localOnly       = $pLocalOnly;
 
   95        $this->_scope           = ($pLocalOnly == 
true) ?
 
   96                                                                (($pScope == 
null) ? $pWorksheet : $pScope) : 
null;
 
  115        if ($value !== NULL) {
 
  120                if ($this->_worksheet !== NULL) {
 
  121                        $this->_worksheet->getParent()->removeNamedRange($this->_name,$this->_worksheet);
 
  123                $this->_name = $value;
 
  125                if ($this->_worksheet !== NULL) {
 
  126                        $this->_worksheet->getParent()->addNamedRange($this);
 
  152        if ($value !== NULL) {
 
  153                $this->_worksheet = $value;
 
  174        if ($value !== NULL) {
 
  175                $this->_range = $value;
 
  196        $this->_localOnly = $value;
 
  197        $this->_scope = $value ? $this->_worksheet : 
null;
 
  217        $this->_scope = $value;
 
  218        $this->_localOnly = ($value == 
null) ? 
false : 
true;
 
  230                return $pSheet->
getParent()->getNamedRange($pNamedRange, $pSheet);
 
  237                $vars = get_object_vars($this);
 
  238                foreach ($vars as 
$key => $value) {
 
  239                        if (is_object($value)) {
 
  240                                $this->
$key = clone $value;
 
  242                                $this->
$key = $value;
 
An exception for terminatinating execution or to throw for unit testing.
getLocalOnly()
Get localOnly.
static resolveRange($pNamedRange='', PHPExcel_Worksheet $pSheet)
Resolve a named range to a regular cell range.
setName($value=null)
Set name.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
__construct($pName=null, PHPExcel_Worksheet $pWorksheet, $pRange='A1', $pLocalOnly=false, $pScope=null)
Create a new NamedRange.
setRange($value=null)
Set range.
setWorksheet(PHPExcel_Worksheet $value=null)
Set worksheet.
getWorksheet()
Get worksheet.
setLocalOnly($value=false)
Set localOnly.
setScope(PHPExcel_Worksheet $value=null)
Set scope.
static getInstance()
Get an instance of this class.