1 | <?php |
||
13 | class MediaWikiNsContentMapper { |
||
14 | |||
15 | /** |
||
16 | * @var MediaWikiNsContentReader |
||
17 | */ |
||
18 | private $mediaWikiNsContentReader; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private static $identifierToPropertyMap = []; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private static $typeToTemplateMap = []; |
||
29 | |||
30 | /** |
||
31 | * Only set during testing to circumvent the MessageCache |
||
32 | * |
||
33 | * @var boolean |
||
34 | */ |
||
35 | public static $skipMessageCache = false; |
||
36 | |||
37 | /** |
||
38 | * @since 1.0 |
||
39 | * |
||
40 | * @param MediaWikiNsContentReader $mediaWikiNsContentReader |
||
41 | */ |
||
42 | 24 | public function __construct( MediaWikiNsContentReader $mediaWikiNsContentReader ) { |
|
45 | |||
46 | /** |
||
47 | * @since 1.0 |
||
48 | */ |
||
49 | 14 | public static function clear() { |
|
54 | |||
55 | /** |
||
56 | * @since 1.0 |
||
57 | * |
||
58 | * @param string $id |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | 23 | public function findPropertyForId( $id ) { |
|
85 | |||
86 | /** |
||
87 | * @since 1.0 |
||
88 | * |
||
89 | * @param string $type |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | 2 | public function findTemplateForType( $type ) { |
|
103 | |||
104 | /** |
||
105 | * @param string $name |
||
106 | */ |
||
107 | 15 | private function parseContentFor( $name ) { |
|
139 | |||
140 | } |
||
141 |