1 | <?php |
||
20 | class ModernTimelinePrinter implements ResultPrinter { |
||
21 | |||
22 | /** |
||
23 | * @var ResultFormat |
||
24 | */ |
||
25 | private $format; |
||
26 | |||
27 | 5 | public function __construct() { |
|
41 | |||
42 | public function getName(): string { |
||
45 | |||
46 | 5 | public function getParamDefinitions( array $definitions ) { |
|
49 | |||
50 | /** |
||
51 | * @param SMWQueryResult $result |
||
52 | * @param Param[] $parameters |
||
53 | * @param int $outputMode |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | 4 | public function getResult( SMWQueryResult $result, array $parameters, $outputMode ): string { |
|
65 | |||
66 | 4 | private function simplifyResult( SMWQueryResult $result ): SubjectCollection { |
|
69 | |||
70 | /** |
||
71 | * This is code copied over from ParamProcessor to go from the deprecated Param[] to ProcessingResult. |
||
72 | * Once the main ResultPrinter interface has been migrated away from Param this can be removed. |
||
73 | */ |
||
74 | 4 | private function newProcessingResultFromParams( array $params ): ProcessingResult { |
|
97 | |||
98 | 4 | public function getQueryMode( $context ): int { |
|
101 | |||
102 | public function setShowErrors( $show ) { |
||
104 | |||
105 | public function isExportFormat(): bool { |
||
108 | |||
109 | 4 | public function getDefaultSort(): string { |
|
112 | |||
113 | 4 | public function isDeferrable(): bool { |
|
116 | |||
117 | 1 | public function supportsRecursiveAnnotation(): bool { |
|
120 | |||
121 | 5 | public function setRecursiveTextProcessor( RecursiveTextProcessor $recursiveTextProcessor ) { |
|
123 | } |
||
124 |