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

Public Member Functions

 __construct ($pIndex='A')
 Create a new PHPExcel_Worksheet_ColumnDimension. More...
 
 getColumnIndex ()
 Get ColumnIndex. More...
 
 setColumnIndex ($pValue)
 Set ColumnIndex. More...
 
 getWidth ()
 Get Width. More...
 
 setWidth ($pValue=-1)
 Set Width. More...
 
 getAutoSize ()
 Get Auto Size. More...
 
 setAutoSize ($pValue=false)
 Set Auto Size. 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

 $_columnIndex
 
 $_width = -1
 
 $_autoSize = false
 
 $_visible = true
 
 $_outlineLevel = 0
 
 $_collapsed = false
 
 $_xfIndex
 

Detailed Description

Definition at line 36 of file ColumnDimension.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Worksheet_ColumnDimension::__construct (   $pIndex = 'A')

Create a new PHPExcel_Worksheet_ColumnDimension.

Parameters
string$pIndexCharacter column index

Definition at line 94 of file ColumnDimension.php.

95  {
96  // Initialise values
97  $this->_columnIndex = $pIndex;
98 
99  // set default index to cellXf
100  $this->_xfIndex = 0;
101  }

Member Function Documentation

◆ __clone()

PHPExcel_Worksheet_ColumnDimension::__clone ( )

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

Definition at line 255 of file ColumnDimension.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

◆ getAutoSize()

PHPExcel_Worksheet_ColumnDimension::getAutoSize ( )

Get Auto Size.

Returns
bool

Definition at line 148 of file ColumnDimension.php.

References $_autoSize.

◆ getCollapsed()

PHPExcel_Worksheet_ColumnDimension::getCollapsed ( )

Get Collapsed.

Returns
bool

Definition at line 215 of file ColumnDimension.php.

References $_collapsed.

◆ getColumnIndex()

PHPExcel_Worksheet_ColumnDimension::getColumnIndex ( )

Get ColumnIndex.

Returns
string

Definition at line 108 of file ColumnDimension.php.

References $_columnIndex.

◆ getOutlineLevel()

PHPExcel_Worksheet_ColumnDimension::getOutlineLevel ( )

Get Outline Level.

Returns
int

Definition at line 188 of file ColumnDimension.php.

References $_outlineLevel.

◆ getVisible()

PHPExcel_Worksheet_ColumnDimension::getVisible ( )

Get Visible.

Returns
bool

Definition at line 168 of file ColumnDimension.php.

References $_visible.

◆ getWidth()

PHPExcel_Worksheet_ColumnDimension::getWidth ( )

Get Width.

Returns
double

Definition at line 128 of file ColumnDimension.php.

References $_width.

◆ getXfIndex()

PHPExcel_Worksheet_ColumnDimension::getXfIndex ( )

Get index to cellXf.

Returns
int

Definition at line 235 of file ColumnDimension.php.

References $_xfIndex.

◆ setAutoSize()

PHPExcel_Worksheet_ColumnDimension::setAutoSize (   $pValue = false)

Set Auto Size.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 158 of file ColumnDimension.php.

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

◆ setCollapsed()

PHPExcel_Worksheet_ColumnDimension::setCollapsed (   $pValue = true)

Set Collapsed.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 225 of file ColumnDimension.php.

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

◆ setColumnIndex()

PHPExcel_Worksheet_ColumnDimension::setColumnIndex (   $pValue)

Set ColumnIndex.

Parameters
string$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 118 of file ColumnDimension.php.

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

◆ setOutlineLevel()

PHPExcel_Worksheet_ColumnDimension::setOutlineLevel (   $pValue)

Set Outline Level.

Value must be between 0 and 7

Parameters
int$pValue
Exceptions
PHPExcel_Exception
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 201 of file ColumnDimension.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  }

◆ setVisible()

PHPExcel_Worksheet_ColumnDimension::setVisible (   $pValue = true)

Set Visible.

Parameters
bool$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 178 of file ColumnDimension.php.

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

◆ setWidth()

PHPExcel_Worksheet_ColumnDimension::setWidth (   $pValue = -1)

Set Width.

Parameters
double$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 138 of file ColumnDimension.php.

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

◆ setXfIndex()

PHPExcel_Worksheet_ColumnDimension::setXfIndex (   $pValue = 0)

Set index to cellXf.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_ColumnDimension

Definition at line 246 of file ColumnDimension.php.

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

Field Documentation

◆ $_autoSize

PHPExcel_Worksheet_ColumnDimension::$_autoSize = false
private

Definition at line 59 of file ColumnDimension.php.

Referenced by getAutoSize().

◆ $_collapsed

PHPExcel_Worksheet_ColumnDimension::$_collapsed = false
private

Definition at line 80 of file ColumnDimension.php.

Referenced by getCollapsed().

◆ $_columnIndex

PHPExcel_Worksheet_ColumnDimension::$_columnIndex
private

Definition at line 43 of file ColumnDimension.php.

Referenced by getColumnIndex().

◆ $_outlineLevel

PHPExcel_Worksheet_ColumnDimension::$_outlineLevel = 0
private

Definition at line 73 of file ColumnDimension.php.

Referenced by getOutlineLevel().

◆ $_visible

PHPExcel_Worksheet_ColumnDimension::$_visible = true
private

Definition at line 66 of file ColumnDimension.php.

Referenced by getVisible().

◆ $_width

PHPExcel_Worksheet_ColumnDimension::$_width = -1
private

Definition at line 52 of file ColumnDimension.php.

Referenced by getWidth().

◆ $_xfIndex

PHPExcel_Worksheet_ColumnDimension::$_xfIndex
private

Definition at line 87 of file ColumnDimension.php.

Referenced by getXfIndex().


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