1 | <?php |
||
11 | class TemplateSlidePresenter implements SlidePresenter { |
||
12 | |||
13 | private $templateName; |
||
14 | |||
15 | 1 | public function __construct( string $templateName ) { |
|
18 | |||
19 | public function getText( Subject $subject ): string { |
||
20 | $parser = $this->getParser(); |
||
21 | |||
22 | return $parser->recursiveTagParseFully( |
||
23 | ( new TemplateSlidePresenter( $this->templateName ) )->getTemplateText( $subject ) |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | private function getParser(): \Parser { |
||
28 | return $GLOBALS['wgParser']; |
||
29 | } |
||
30 | |||
31 | 1 | public function getTemplateText( Subject $subject ): string { |
|
34 | |||
35 | 1 | private function getTemplateSegments( Subject $subject ): array { |
|
52 | |||
53 | 1 | private function dataItemToText( \SMWDataItem $dataItem ): string { |
|
56 | |||
57 | 1 | private function parameter( string $name, string $value ): string { |
|
60 | } |
||
61 |