ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Worksheet\Dimension Class Reference
+ Inheritance diagram for PhpOffice\PhpSpreadsheet\Worksheet\Dimension:
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Worksheet\Dimension:

Public Member Functions

 __construct ($initialValue=null)
 Create a new Dimension. More...
 
 getVisible ()
 Get Visible. More...
 
 setVisible (bool $visible)
 Set Visible. More...
 
 getOutlineLevel ()
 Get Outline Level. More...
 
 setOutlineLevel (int $level)
 Set Outline Level. More...
 
 getCollapsed ()
 Get Collapsed. More...
 
 setCollapsed (bool $collapsed)
 Set Collapsed. More...
 
 getXfIndex ()
 Get index to cellXf. More...
 
 setXfIndex (int $pValue)
 Set index to cellXf. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $visible = true
 
 $outlineLevel = 0
 
 $collapsed = false
 
 $xfIndex
 

Detailed Description

Definition at line 7 of file Dimension.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::__construct (   $initialValue = null)

Create a new Dimension.

Parameters
int$initialValueNumeric row index

Definition at line 42 of file Dimension.php.

43  {
44  // set dimension as unformatted by default
45  $this->xfIndex = $initialValue;
46  }

Member Function Documentation

◆ __clone()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 138 of file Dimension.php.

References $key.

139  {
140  $vars = get_object_vars($this);
141  foreach ($vars as $key => $value) {
142  if (is_object($value)) {
143  $this->$key = clone $value;
144  } else {
145  $this->$key = $value;
146  }
147  }
148  }
$key
Definition: croninfo.php:18

◆ getCollapsed()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::getCollapsed ( )

Get Collapsed.

Definition at line 96 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$collapsed.

96  : bool
97  {
98  return $this->collapsed;
99  }

◆ getOutlineLevel()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::getOutlineLevel ( )

Get Outline Level.

Definition at line 71 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$outlineLevel.

71  : int
72  {
73  return $this->outlineLevel;
74  }

◆ getVisible()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::getVisible ( )

Get Visible.

Definition at line 51 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$visible.

51  : bool
52  {
53  return $this->visible;
54  }

◆ getXfIndex()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::getXfIndex ( )

Get index to cellXf.

Returns
int

Definition at line 118 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$xfIndex.

118  : ?int
119  {
120  return $this->xfIndex;
121  }

◆ setCollapsed()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::setCollapsed ( bool  $collapsed)

Set Collapsed.

Returns
$this

Definition at line 106 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$collapsed.

107  {
108  $this->collapsed = $collapsed;
109 
110  return $this;
111  }

◆ setOutlineLevel()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::setOutlineLevel ( int  $level)

Set Outline Level.

Value must be between 0 and 7.

Returns
$this

Definition at line 82 of file Dimension.php.

83  {
84  if ($level < 0 || $level > 7) {
85  throw new PhpSpreadsheetException('Outline level must range between 0 and 7.');
86  }
87 
88  $this->outlineLevel = $level;
89 
90  return $this;
91  }

◆ setVisible()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::setVisible ( bool  $visible)

Set Visible.

Returns
$this

Definition at line 61 of file Dimension.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Dimension\$visible.

62  {
63  $this->visible = $visible;
64 
65  return $this;
66  }

◆ setXfIndex()

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::setXfIndex ( int  $pValue)

Set index to cellXf.

Returns
$this

Definition at line 128 of file Dimension.php.

129  {
130  $this->xfIndex = $pValue;
131 
132  return $this;
133  }

Field Documentation

◆ $collapsed

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::$collapsed = false
private

◆ $outlineLevel

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::$outlineLevel = 0
private

◆ $visible

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::$visible = true
private

◆ $xfIndex

PhpOffice\PhpSpreadsheet\Worksheet\Dimension::$xfIndex
private

The documentation for this class was generated from the following file: