ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Theme.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Reader\Xlsx
;
4
5
class
Theme
6
{
12
private
$themeName
;
13
19
private
$colourSchemeName
;
20
26
private
$colourMap
;
27
35
public
function
__construct
(
$themeName
,
$colourSchemeName
,
$colourMap
)
36
{
37
// Initialise values
38
$this->themeName =
$themeName
;
39
$this->colourSchemeName =
$colourSchemeName
;
40
$this->colourMap =
$colourMap
;
41
}
42
48
public
function
getThemeName
()
49
{
50
return
$this->themeName
;
51
}
52
58
public
function
getColourSchemeName
()
59
{
60
return
$this->colourSchemeName
;
61
}
62
70
public
function
getColourByIndex
(
$index
)
71
{
72
if
(isset($this->colourMap[
$index
])) {
73
return
$this->colourMap[
$index
];
74
}
75
76
return
null;
77
}
78
82
public
function
__clone
()
83
{
84
$vars = get_object_vars($this);
85
foreach
($vars as
$key
=> $value) {
86
if
((is_object($value)) && (
$key
!=
'_parent'
)) {
87
$this->
$key
= clone $value;
88
}
else
{
89
$this->
$key
= $value;
90
}
91
}
92
}
93
}
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\$colourMap
$colourMap
Definition:
Theme.php:26
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\getThemeName
getThemeName()
Get Theme Name.
Definition:
Theme.php:48
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\getColourSchemeName
getColourSchemeName()
Get colour Scheme Name.
Definition:
Theme.php:58
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\$colourSchemeName
$colourSchemeName
Definition:
Theme.php:19
$index
$index
Definition:
metadata.php:60
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\__construct
__construct($themeName, $colourSchemeName, $colourMap)
Create a new Theme.
Definition:
Theme.php:35
PhpOffice\PhpSpreadsheet\Reader\Xlsx
Definition:
AutoFilter.php:3
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\getColourByIndex
getColourByIndex($index)
Get colour Map Value by Position.
Definition:
Theme.php:70
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\__clone
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition:
Theme.php:82
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme\$themeName
$themeName
Definition:
Theme.php:12
php
PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme
Definition:
Theme.php:5
$key
$key
Definition:
croninfo.php:18
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Reader
Xlsx
Theme.php
Generated on Thu Jan 16 2025 19:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)