@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | return $languageTargetLinks; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $template |
|
79 | + */ |
|
77 | 80 | private function createTemplateInclusionCode( array $languageTargetLinks, $template ) { |
78 | 81 | |
79 | 82 | $result = ''; |
@@ -104,6 +107,9 @@ discard block |
||
104 | 107 | return ( $targetLink->getNamespace() === NS_CATEGORY ? ':' : '' ) . $targetLink->getPrefixedText(); |
105 | 108 | } |
106 | 109 | |
110 | + /** |
|
111 | + * @param string $messageKey |
|
112 | + */ |
|
107 | 113 | private function createErrorMessageFor( $messageKey, $arg1 = '' ) { |
108 | 114 | return '<div class="smw-callout smw-callout-error">' . wfMessage( $messageKey, $arg1 )->inContentLanguage()->text() . '</div>'; |
109 | 115 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * @since 1.0 |
76 | 76 | * |
77 | - * @return DataValue |
|
77 | + * @return \SMWDataValue |
|
78 | 78 | */ |
79 | 79 | public function newLanguageDataValue() { |
80 | 80 | return DataValueFactory::getInstance()->newDataItemValue( |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * @since 1.0 |
88 | 88 | * |
89 | - * @return DataValue |
|
89 | + * @return \SMWDataValue |
|
90 | 90 | */ |
91 | 91 | public function newInterwikiReferenceDataValue() { |
92 | 92 | return DataValueFactory::getInstance()->newDataItemValue( |
@@ -45,7 +45,6 @@ |
||
45 | 45 | /** |
46 | 46 | * @since 1.0 |
47 | 47 | * |
48 | - * @param Title $target |
|
49 | 48 | * |
50 | 49 | * @return Title |
51 | 50 | */ |
@@ -84,6 +84,11 @@ |
||
84 | 84 | ); |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param Store $store |
|
89 | + * @param Cache $cache |
|
90 | + * @param CacheKeyProvider $cacheKeyProvider |
|
91 | + */ |
|
87 | 92 | private function addCallbackHandlers( $store, $cache, $cacheKeyProvider ) { |
88 | 93 | |
89 | 94 | $languageTargetLinksCache = new LanguageTargetLinksCache( |
@@ -90,7 +90,7 @@ |
||
90 | 90 | /** |
91 | 91 | * @since 1.0 |
92 | 92 | * |
93 | - * @return DataValue |
|
93 | + * @return \SMWDataValue |
|
94 | 94 | */ |
95 | 95 | public function newLinkReferenceDataValue() { |
96 | 96 | return DataValueFactory::getInstance()->newDataItemValue( |
@@ -18,6 +18,8 @@ discard block |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @see CategoryViewer::addImage |
21 | + * @param string $sortkey |
|
22 | + * @param string $pageLength |
|
21 | 23 | */ |
22 | 24 | public function addImage( Title $title, $sortkey, $pageLength, $isRedirect = false ) { |
23 | 25 | |
@@ -30,6 +32,8 @@ discard block |
||
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @see CategoryViewer::addSubcategoryObject |
35 | + * @param string $sortkey |
|
36 | + * @param string $pageLength |
|
33 | 37 | */ |
34 | 38 | public function addSubcategoryObject( Category $cat, $sortkey, $pageLength ) { |
35 | 39 | |
@@ -42,6 +46,8 @@ discard block |
||
42 | 46 | |
43 | 47 | /** |
44 | 48 | * @see CategoryViewer::addPage |
49 | + * @param string $sortkey |
|
50 | + * @param string $pageLength |
|
45 | 51 | */ |
46 | 52 | public function addPage( $title, $sortkey, $pageLength, $isRedirect = false ) { |
47 | 53 |
@@ -125,6 +125,10 @@ discard block |
||
125 | 125 | return $this->createSiteLanguageLinks( $interlanguageLink ); |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param string $languageCode |
|
130 | + * @param string $linkReference |
|
131 | + */ |
|
128 | 132 | private function getTitleFrom( $isSupportedLanguage, $languageCode, $linkReference ) { |
129 | 133 | |
130 | 134 | if ( $this->inRevisionMode || !$this->languageLinkAnnotator->canAddAnnotation() ) { |
@@ -173,6 +177,9 @@ discard block |
||
173 | 177 | return '<div class="sil-interlanguagelink"></div>'; |
174 | 178 | } |
175 | 179 | |
180 | + /** |
|
181 | + * @param string $languageCode |
|
182 | + */ |
|
176 | 183 | private function isSupportedLanguage( $languageCode ) { |
177 | 184 | |
178 | 185 | $languageCode = trim( mb_strtolower( $languageCode ) ); |
@@ -184,6 +191,9 @@ discard block |
||
184 | 191 | return Language::isSupportedLanguage( $languageCode ); |
185 | 192 | } |
186 | 193 | |
194 | + /** |
|
195 | + * @param string $messageKey |
|
196 | + */ |
|
187 | 197 | private function createErrorMessageFor( $messageKey, $arg1 = '', $arg2 = '', $arg3 = '',$arg4 = '' ) { |
188 | 198 | return '<div class="smw-callout smw-callout-error">' . wfMessage( |
189 | 199 | $messageKey, |
@@ -48,6 +48,7 @@ |
||
48 | 48 | * |
49 | 49 | * @param Title $title |
50 | 50 | * @param string &languageCode |
51 | + * @param string $languageCode |
|
51 | 52 | */ |
52 | 53 | public function addToIntermediaryCache( Title $title, $languageCode ) { |
53 | 54 | $this->intermediaryCache->save( $this->getHashFrom( $title ), $languageCode ); |
@@ -64,6 +64,10 @@ |
||
64 | 64 | return [ $templateText, 'noparse' => $templateText === '', 'isHTML' => false ]; |
65 | 65 | } |
66 | 66 | |
67 | + /** |
|
68 | + * @param string $languageCode |
|
69 | + * @param string $template |
|
70 | + */ |
|
67 | 71 | private function createTemplateInclusionCode( $source, $languageCode, $template ) { |
68 | 72 | |
69 | 73 | $result = ''; |