| @@ 544-550 (lines=7) @@ | ||
| 541 | /** |
|
| 542 | * @return TTheme the theme used for the page. Defaults to null. |
|
| 543 | */ |
|
| 544 | public function getTheme() |
|
| 545 | { |
|
| 546 | if (is_string($this->_theme)) { |
|
| 547 | $this->_theme = $this->getService()->getThemeManager()->getTheme($this->_theme); |
|
| 548 | } |
|
| 549 | return $this->_theme; |
|
| 550 | } |
|
| 551 | ||
| 552 | /** |
|
| 553 | * Sets the theme to be used for the page. |
|
| @@ 565-571 (lines=7) @@ | ||
| 562 | /** |
|
| 563 | * @return TTheme the stylesheet theme used for the page. Defaults to null. |
|
| 564 | */ |
|
| 565 | public function getStyleSheetTheme() |
|
| 566 | { |
|
| 567 | if (is_string($this->_styleSheet)) { |
|
| 568 | $this->_styleSheet = $this->getService()->getThemeManager()->getTheme($this->_styleSheet); |
|
| 569 | } |
|
| 570 | return $this->_styleSheet; |
|
| 571 | } |
|
| 572 | ||
| 573 | /** |
|
| 574 | * Sets the stylesheet theme to be used for the page. |
|