1 | <?php |
||
36 | class Template extends \OC_Defaults { |
||
37 | /** @var IConfig */ |
||
38 | private $config; |
||
39 | /** @var IL10N */ |
||
40 | private $l; |
||
|
|||
41 | /** @var IURLGenerator */ |
||
42 | private $urlGenerator; |
||
43 | /** @var string */ |
||
44 | private $name; |
||
45 | /** @var string */ |
||
46 | private $url; |
||
47 | /** @var string */ |
||
48 | private $slogan; |
||
49 | /** @var string */ |
||
50 | private $color; |
||
51 | |||
52 | /** |
||
53 | * Template constructor. |
||
54 | * |
||
55 | * @param IConfig $config |
||
56 | * @param IL10N $l |
||
57 | * @param IURLGenerator $urlGenerator |
||
58 | * @param \OC_Defaults $defaults |
||
59 | */ |
||
60 | public function __construct(IConfig $config, |
||
75 | |||
76 | public function getName() { |
||
79 | |||
80 | public function getHTMLName() { |
||
83 | |||
84 | public function getTitle() { |
||
87 | |||
88 | public function getEntity() { |
||
89 | return $this->config->getAppValue('theming', 'name', $this->name); |
||
90 | } |
||
91 | |||
92 | public function getBaseUrl() { |
||
93 | return $this->config->getAppValue('theming', 'url', $this->url); |
||
94 | } |
||
95 | |||
96 | public function getSlogan() { |
||
97 | return $this->config->getAppValue('theming', 'slogan', $this->slogan); |
||
98 | } |
||
99 | |||
100 | public function getShortFooter() { |
||
108 | |||
109 | /** |
||
110 | * Color that is used for the header as well as for mail headers |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getMailHeaderColor() { |
||
117 | |||
118 | /** |
||
119 | * Increases the cache buster key |
||
120 | */ |
||
121 | private function increaseCacheBuster() { |
||
125 | |||
126 | /** |
||
127 | * Update setting in the database |
||
128 | * |
||
129 | * @param string $setting |
||
130 | * @param string $value |
||
131 | */ |
||
132 | public function set($setting, $value) { |
||
136 | |||
137 | /** |
||
138 | * Revert settings to the default value |
||
139 | * |
||
140 | * @param string $setting setting which should be reverted |
||
141 | * @return string default value |
||
142 | */ |
||
143 | public function undo($setting) { |
||
167 | } |
||
168 |