ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_Worksheet_RowDimension Class Reference
+ Collaboration diagram for PHPExcel_Worksheet_RowDimension:

Public Member Functions

 __construct ($pIndex=0)
 Create a new PHPExcel_Worksheet_RowDimension. More...
 
 getRowIndex ()
 Get Row Index. More...
 
 setRowIndex ($pValue)
 Set Row Index. More...
 
 getRowHeight ()
 Get Row Height. More...
 
 setRowHeight ($pValue=-1)
 Set Row Height. More...
 
 getZeroHeight ()
 Get ZeroHeight. More...
 
 setZeroHeight ($pValue=false)
 Set ZeroHeight. More...
 
 getVisible ()
 Get Visible. More...
 
 setVisible ($pValue=true)
 Set Visible. More...
 
 getOutlineLevel ()
 Get Outline Level. More...
 
 setOutlineLevel ($pValue)
 Set Outline Level. More...
 
 getCollapsed ()
 Get Collapsed. More...
 
 setCollapsed ($pValue=true)
 Set Collapsed. More...
 
 getXfIndex ()
 Get index to cellXf. More...
 
 setXfIndex ($pValue=0)
 Set index to cellXf. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $_rowIndex
 
 $_rowHeight = -1
 
 $_zeroHeight = false
 
 $_visible = true
 
 $_outlineLevel = 0
 
 $_collapsed = false
 
 $_xfIndex
 

Detailed Description

Definition at line 36 of file RowDimension.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Worksheet_RowDimension::__construct (   $pIndex = 0)

Create a new PHPExcel_Worksheet_RowDimension.

Parameters
int$pIndexNumeric row index

Definition at line 94 of file RowDimension.php.

95  {
96  // Initialise values
97  $this->_rowIndex = $pIndex;
98 
99  // set row dimension as unformatted by default
100  $this->_xfIndex = null;
101  }

Member Function Documentation

◆ __clone()

PHPExcel_Worksheet_RowDimension::__clone ( )

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

Definition at line 255 of file RowDimension.php.

References $key.

255  {
256  $vars = get_object_vars($this);
257  foreach ($vars as $key => $value) {
258  if (is_object($value)) {
259  $this->$key = clone $value;
260  } else {
261  $this->$key = $value;
262  }
263  }
264  }
$key
Definition: croninfo.php:18

◆ getCollapsed()

PHPExcel_Worksheet_RowDimension::getCollapsed ( )

Get Collapsed.

Returns
bool

Definition at line 215 of file RowDimension.php.

References $_collapsed.

215  {
216  return $this->_collapsed;
217  }

◆ getOutlineLevel()

PHPExcel_Worksheet_RowDimension::getOutlineLevel ( )

Get Outline Level.

Returns
int

Definition at line 188 of file RowDimension.php.

References $_outlineLevel.

188  {
189  return $this->_outlineLevel;
190  }

◆ getRowHeight()

PHPExcel_Worksheet_RowDimension::getRowHeight ( )

Get Row Height.

Returns
double

Definition at line 128 of file RowDimension.php.

References $_rowHeight.

128  {
129  return $this->_rowHeight;
130  }

◆ getRowIndex()

PHPExcel_Worksheet_RowDimension::getRowIndex ( )

Get Row Index.

Returns
int

Definition at line 108 of file RowDimension.php.

References $_rowIndex.

108  {
109  return $this->_rowIndex;
110  }

◆ getVisible()

PHPExcel_Worksheet_RowDimension::getVisible ( )

Get Visible.

Returns
bool

Definition at line 168 of file RowDimension.php.

References $_visible.

168  {
169  return $this->_visible;
170  }

◆ getXfIndex()

PHPExcel_Worksheet_RowDimension::getXfIndex ( )

Get index to cellXf.

Returns
int

Definition at line 235 of file RowDimension.php.

References $_xfIndex.

236  {
237  return $this->_xfIndex;
238  }

◆ getZeroHeight()

PHPExcel_Worksheet_RowDimension::getZeroHeight ( )

Get ZeroHeight.

Returns
bool

Definition at line 148 of file RowDimension.php.

References $_zeroHeight.

148  {
149  return $this->_zeroHeight;
150  }

◆ setCollapsed()

PHPExcel_Worksheet_RowDimension::setCollapsed (   $pValue = true)

Set Collapsed.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 225 of file RowDimension.php.

225  {
226  $this->_collapsed = $pValue;
227  return $this;
228  }

◆ setOutlineLevel()

PHPExcel_Worksheet_RowDimension::setOutlineLevel (   $pValue)

Set Outline Level.

Value must be between 0 and 7

Parameters
int$pValue
Exceptions
PHPExcel_Exception
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 201 of file RowDimension.php.

201  {
202  if ($pValue < 0 || $pValue > 7) {
203  throw new PHPExcel_Exception("Outline level must range between 0 and 7.");
204  }
205 
206  $this->_outlineLevel = $pValue;
207  return $this;
208  }

◆ setRowHeight()

PHPExcel_Worksheet_RowDimension::setRowHeight (   $pValue = -1)

Set Row Height.

Parameters
double$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 138 of file RowDimension.php.

138  {
139  $this->_rowHeight = $pValue;
140  return $this;
141  }

◆ setRowIndex()

PHPExcel_Worksheet_RowDimension::setRowIndex (   $pValue)

Set Row Index.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 118 of file RowDimension.php.

118  {
119  $this->_rowIndex = $pValue;
120  return $this;
121  }

◆ setVisible()

PHPExcel_Worksheet_RowDimension::setVisible (   $pValue = true)

Set Visible.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 178 of file RowDimension.php.

178  {
179  $this->_visible = $pValue;
180  return $this;
181  }

◆ setXfIndex()

PHPExcel_Worksheet_RowDimension::setXfIndex (   $pValue = 0)

Set index to cellXf.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 246 of file RowDimension.php.

247  {
248  $this->_xfIndex = $pValue;
249  return $this;
250  }

◆ setZeroHeight()

PHPExcel_Worksheet_RowDimension::setZeroHeight (   $pValue = false)

Set ZeroHeight.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_RowDimension

Definition at line 158 of file RowDimension.php.

158  {
159  $this->_zeroHeight = $pValue;
160  return $this;
161  }

Field Documentation

◆ $_collapsed

PHPExcel_Worksheet_RowDimension::$_collapsed = false
private

Definition at line 80 of file RowDimension.php.

Referenced by getCollapsed().

◆ $_outlineLevel

PHPExcel_Worksheet_RowDimension::$_outlineLevel = 0
private

Definition at line 73 of file RowDimension.php.

Referenced by getOutlineLevel().

◆ $_rowHeight

PHPExcel_Worksheet_RowDimension::$_rowHeight = -1
private

Definition at line 52 of file RowDimension.php.

Referenced by getRowHeight().

◆ $_rowIndex

PHPExcel_Worksheet_RowDimension::$_rowIndex
private

Definition at line 43 of file RowDimension.php.

Referenced by getRowIndex().

◆ $_visible

PHPExcel_Worksheet_RowDimension::$_visible = true
private

Definition at line 66 of file RowDimension.php.

Referenced by getVisible().

◆ $_xfIndex

PHPExcel_Worksheet_RowDimension::$_xfIndex
private

Definition at line 87 of file RowDimension.php.

Referenced by getXfIndex().

◆ $_zeroHeight

PHPExcel_Worksheet_RowDimension::$_zeroHeight = false
private

Definition at line 59 of file RowDimension.php.

Referenced by getZeroHeight().


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