ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
Theme.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_themeName;
44 
51 
58 
59 
65  private $_colourMap;
66 
67 
72  public function __construct($themeName,$colourSchemeName,$colourMap)
73  {
74  // Initialise values
75  $this->_themeName = $themeName;
76  $this->_colourSchemeName = $colourSchemeName;
77  $this->_colourMap = $colourMap;
78  }
79 
85  public function getThemeName()
86  {
87  return $this->_themeName;
88  }
89 
95  public function getColourSchemeName() {
97  }
98 
104  public function getColourByIndex($index=0) {
105  if (isset($this->_colourMap[$index])) {
106  return $this->_colourMap[$index];
107  }
108  return null;
109  }
110 
114  public function __clone() {
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  }
124 }