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

Public Member Functions

 __construct ($themeName, $colourSchemeName, $colourMap)
 Create a new PHPExcel_Theme. More...
 
 getThemeName ()
 Get Theme Name. More...
 
 getColourSchemeName ()
 Get colour Scheme Name. More...
 
 getColourByIndex ($index=0)
 Get colour Map Value by Position. More...
 
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy. More...
 

Private Attributes

 $_themeName
 
 $_colourSchemeName
 
 $_colourMapValues
 
 $_colourMap
 

Detailed Description

Definition at line 36 of file Theme.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Reader_Excel2007_Theme::__construct (   $themeName,
  $colourSchemeName,
  $colourMap 
)

Create a new PHPExcel_Theme.

Definition at line 72 of file Theme.php.

73  {
74  // Initialise values
75  $this->_themeName = $themeName;
76  $this->_colourSchemeName = $colourSchemeName;
77  $this->_colourMap = $colourMap;
78  }

Member Function Documentation

◆ __clone()

PHPExcel_Reader_Excel2007_Theme::__clone ( )

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

Definition at line 114 of file Theme.php.

References $key.

114  {
115  $vars = get_object_vars($this);
116  foreach ($vars as $key => $value) {
117  if ((is_object($value)) && ($key != '_parent')) {
118  $this->$key = clone $value;
119  } else {
120  $this->$key = $value;
121  }
122  }
123  }
$key
Definition: croninfo.php:18

◆ getColourByIndex()

PHPExcel_Reader_Excel2007_Theme::getColourByIndex (   $index = 0)

Get colour Map Value by Position.

Returns
string

Definition at line 104 of file Theme.php.

References $index.

104  {
105  if (isset($this->_colourMap[$index])) {
106  return $this->_colourMap[$index];
107  }
108  return null;
109  }
$index
Definition: metadata.php:60

◆ getColourSchemeName()

PHPExcel_Reader_Excel2007_Theme::getColourSchemeName ( )

Get colour Scheme Name.

Returns
string

Definition at line 95 of file Theme.php.

References $_colourSchemeName.

95  {
97  }

◆ getThemeName()

PHPExcel_Reader_Excel2007_Theme::getThemeName ( )

Get Theme Name.

Returns
string

Definition at line 85 of file Theme.php.

References $_themeName.

86  {
87  return $this->_themeName;
88  }

Field Documentation

◆ $_colourMap

PHPExcel_Reader_Excel2007_Theme::$_colourMap
private

Definition at line 65 of file Theme.php.

◆ $_colourMapValues

PHPExcel_Reader_Excel2007_Theme::$_colourMapValues
private

Definition at line 57 of file Theme.php.

◆ $_colourSchemeName

PHPExcel_Reader_Excel2007_Theme::$_colourSchemeName
private

Definition at line 50 of file Theme.php.

Referenced by getColourSchemeName().

◆ $_themeName

PHPExcel_Reader_Excel2007_Theme::$_themeName
private

Definition at line 43 of file Theme.php.

Referenced by getThemeName().


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