@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |
266 | - * @param $key |
|
266 | + * @param string $key |
|
267 | 267 | * @return mixed |
268 | 268 | */ |
269 | 269 | public function getLLL($key) { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param boolean positive or negative state |
277 | 277 | * @param string $title |
278 | - * @return html tag to include the state image |
|
278 | + * @return string tag to include the state image |
|
279 | 279 | */ |
280 | 280 | protected function _getStatusImage($stat, $title = '') { |
281 | 281 | if ($stat) { |
@@ -277,6 +277,9 @@ discard block |
||
277 | 277 | return $output; |
278 | 278 | } |
279 | 279 | |
280 | + /** |
|
281 | + * @param boolean $stat |
|
282 | + */ |
|
280 | 283 | protected function _getStatusImage($stat) { |
281 | 284 | if ($stat) { |
282 | 285 | return '<img src="' . $GLOBALS['BACK_PATH'] . '../typo3conf/ext/languagevisibility/res/ok.gif">'; |
@@ -323,7 +326,7 @@ discard block |
||
323 | 326 | /** |
324 | 327 | * Main method of the module |
325 | 328 | * |
326 | - * @return HTML |
|
329 | + * @return string |
|
327 | 330 | */ |
328 | 331 | public function main() { |
329 | 332 | // Initializes the module. Done in this function because we may need to re-initialize if data is submitted! |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Returns the cache array for a given name space. |
114 | 114 | * |
115 | - * @param $namespace |
|
115 | + * @param string $namespace |
|
116 | 116 | * @return array |
117 | 117 | */ |
118 | 118 | public function get($namespace) { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Method to write content into the cache. |
128 | 128 | * |
129 | - * @param $namespace |
|
129 | + * @param string $namespace |
|
130 | 130 | * @param $content |
131 | 131 | * @return void |
132 | 132 | */ |
@@ -37,6 +37,9 @@ |
||
37 | 37 | class DaoCommonStub { |
38 | 38 | var $row; |
39 | 39 | |
40 | + /** |
|
41 | + * @param string $table |
|
42 | + */ |
|
40 | 43 | function stub_setRow($row, $table) { |
41 | 44 | $this->row[$table][$row['uid']] = $row; |
42 | 45 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Returns the Uid of the Element |
146 | 146 | * |
147 | - * @return int |
|
147 | + * @return string |
|
148 | 148 | */ |
149 | 149 | public function getUid() { |
150 | 150 | return $this->row['uid']; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | /** |
154 | 154 | * Returns the pid of the Element |
155 | 155 | * |
156 | - * @return int |
|
156 | + * @return string |
|
157 | 157 | */ |
158 | 158 | public function getPid() { |
159 | 159 | return $this->row['pid']; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Return the content of the title field |
164 | 164 | * |
165 | - * @return unknown |
|
165 | + * @return string |
|
166 | 166 | */ |
167 | 167 | public function getTitle() { |
168 | 168 | return $this->row['title']; |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * |
282 | 282 | * @param string $table |
283 | 283 | * @param string $olrow |
284 | - * @return array |
|
284 | + * @return string |
|
285 | 285 | */ |
286 | 286 | protected function getContextIndependentWorkspaceOverlay($table, $olrow) { |
287 | 287 | if (is_object($GLOBALS['TSFE']->sys_page)) { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | /** |
326 | 326 | * Checks if the current record is set to language all (that is typically used to indicate that per default this element is visible in all langauges) |
327 | 327 | * |
328 | - * @return unknown |
|
328 | + * @return boolean |
|
329 | 329 | */ |
330 | 330 | public function isLanguageSetToAll() { |
331 | 331 | if ($this->row['sys_language_uid'] == '-1') { |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | /** |
485 | 485 | * Check the records enableColumns |
486 | 486 | * |
487 | - * @param $row |
|
487 | + * @param string $row |
|
488 | 488 | * @return bool |
489 | 489 | */ |
490 | 490 | protected function getEnableFieldResult($row) { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * needs to be orverlayed with a record, that has the field 'tx_languagevisibility_inheritanceflag_overlayed' |
150 | 150 | * configured or is the first element of the rootline |
151 | 151 | * |
152 | - * @param tx_languagevisibility_element $element |
|
152 | + * @param Element $element |
|
153 | 153 | * @param $language |
154 | 154 | * @return array $elements (collection of tx_languagevisibility_element) |
155 | 155 | */ |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @todo The rooline can be build in a smarter way, once the rootline for a page has been created |
191 | 191 | * same parts of the rootline not have to be calculated twice. |
192 | - * @param $uid |
|
192 | + * @param string $uid |
|
193 | 193 | * @param $languageid |
194 | 194 | * @return array |
195 | 195 | * @internal param \The $integer page uid for which to seek back to the page tree root. |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | /** |
291 | 291 | * Gets instance depending on TYPO3 version |
292 | - * @param $name name of the class |
|
292 | + * @param string $name name of the class |
|
293 | 293 | * @param array $row row that is used to initialaze element instance |
294 | 294 | * @return tx_languagevisibility_element |
295 | 295 | */ |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * @param array Various stuff in an array |
125 | 125 | * @param string path to location in flexform for current field |
126 | 126 | * @param object Reference to parent object |
127 | - * @return void |
|
127 | + * @return false|null |
|
128 | 128 | */ |
129 | 129 | public function _hasOverlayRecordForLanguage_Inheritance_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, &$pObj) { |
130 | 130 | if ($this->langIsoCodeForFlexFormCallback == '') { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param array Various stuff in an array |
160 | 160 | * @param string path to location in flexform for current field |
161 | 161 | * @param object Reference to parent object |
162 | - * @return void |
|
162 | + * @return false|null |
|
163 | 163 | */ |
164 | 164 | public function _hasOverlayRecordForLanguage_Seperate_flexFormCallBack($dsArr, $dataValue, $PA, $structurePath, &$pObj) { |
165 | 165 | if ($this->langIsoCodeForFlexFormCallback == '') { |
@@ -195,7 +195,7 @@ |
||
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
198 | - * @param $table |
|
198 | + * @param string $table |
|
199 | 199 | * @param $row |
200 | 200 | * @param $languageId |
201 | 201 | * @return mixed |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | /** |
93 | 93 | * Returns the fallback order for this language for elements |
94 | 94 | * |
95 | - * @param tx_languagevisibility_element $contextElement |
|
95 | + * @param Element $contextElement |
|
96 | 96 | * @return array |
97 | 97 | */ |
98 | 98 | public function getFallbackOrderElement(Element $contextElement) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Returns the fallback order for news elements as array |
114 | 114 | * |
115 | - * @param tx_languagevisibility_element $contextElement |
|
115 | + * @param Element $contextElement |
|
116 | 116 | * @return array |
117 | 117 | */ |
118 | 118 | public function getFallbackOrderTTNewsElement(Element $contextElement) { |
@@ -131,9 +131,9 @@ discard block |
||
131 | 131 | |
132 | 132 | /** |
133 | 133 | * |
134 | - * @param unknown_type $key |
|
134 | + * @param string $key |
|
135 | 135 | * @param unknown_type $fallbackorder |
136 | - * @param tx_languagevisibility_element $contextElement |
|
136 | + * @param Element $contextElement |
|
137 | 137 | * @return array |
138 | 138 | */ |
139 | 139 | protected function triggerFallbackHooks($key, $fallbackorder, Element $contextElement) { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Method to read the defaultVisibility setting of pages. |
172 | 172 | * |
173 | - * @param tx_languagevisibility_element $contextElement |
|
173 | + * @param Element $contextElement |
|
174 | 174 | * @return string |
175 | 175 | */ |
176 | 176 | public function getDefaultVisibilityForPage(Element $contextElement) { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * Method to read the defaultVisibility for elements |
182 | 182 | * |
183 | - * @param tx_languagevisibility_element $contextElement |
|
183 | + * @param Element $contextElement |
|
184 | 184 | * @return string |
185 | 185 | */ |
186 | 186 | public function getDefaultVisibilityForElement(Element $contextElement) { |
@@ -323,6 +323,7 @@ discard block |
||
323 | 323 | * |
324 | 324 | * @param int uid |
325 | 325 | * @param Element $el |
326 | + * @param integer $uid |
|
326 | 327 | * @return boolean |
327 | 328 | */ |
328 | 329 | public function isLanguageUidInFallbackOrder($uid, Element $el) { |