@@ -245,6 +245,7 @@ discard block |
||
| 245 | 245 | * b) edit page record: only if the record is only visible in languages where the user has access to |
| 246 | 246 | * b.1) also if the languages taht are visibile and falls back to allowed languages |
| 247 | 247 | * c) delete: same as for edit (only if user has access to all visible languages) |
| 248 | + * @param integer $id |
|
| 248 | 249 | */ |
| 249 | 250 | public static function hasUserAccessToPageRecord($id, $cmd = 'edit') { |
| 250 | 251 | if ($cmd == 'new') { |
@@ -378,7 +379,7 @@ discard block |
||
| 378 | 379 | * |
| 379 | 380 | * @param tx_languagevisibility_language $language |
| 380 | 381 | * @param bool $isOverlay |
| 381 | - * @param null $element |
|
| 382 | + * @param tx_languagevisibility_element $element |
|
| 382 | 383 | * @return array |
| 383 | 384 | */ |
| 384 | 385 | public static function getAvailableOptionsForLanguage(tx_languagevisibility_language $language, $isOverlay = FALSE, $element = NULL) { |
@@ -459,7 +460,7 @@ discard block |
||
| 459 | 460 | } |
| 460 | 461 | |
| 461 | 462 | /** |
| 462 | - * @return mixed |
|
| 463 | + * @return integer |
|
| 463 | 464 | */ |
| 464 | 465 | protected static function _guessCurrentPid() { |
| 465 | 466 | return \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'); |
@@ -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) { |
@@ -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 | */ |
@@ -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) { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * |
| 187 | 187 | * @todo The rooline can be build in a smarter way, once the rootline for a page has been created |
| 188 | 188 | * same parts of the rootline not have to be calculated twice. |
| 189 | - * @param $uid |
|
| 189 | + * @param string $uid |
|
| 190 | 190 | * @param $languageid |
| 191 | 191 | * @return array |
| 192 | 192 | * @internal param \The $integer page uid for which to seek back to the page tree root. |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | /** |
| 288 | 288 | * Gets instance depending on TYPO3 version |
| 289 | - * @param $name name of the class |
|
| 289 | + * @param string $name name of the class |
|
| 290 | 290 | * @param array $row row that is used to initialaze element instance |
| 291 | 291 | * @return tx_languagevisibility_element |
| 292 | 292 | */ |
@@ -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 == '') { |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | 130 | * |
| 131 | - * @param unknown_type $key |
|
| 131 | + * @param string $key |
|
| 132 | 132 | * @param unknown_type $fallbackorder |
| 133 | 133 | * @param tx_languagevisibility_element $contextElement |
| 134 | 134 | * @return array |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * |
| 76 | 76 | * @param int $lUid |
| 77 | 77 | * @internal param bool $onlyUid |
| 78 | - * @return array return the database row |
|
| 78 | + * @return string return the database row |
|
| 79 | 79 | */ |
| 80 | 80 | protected function getOverLayRecordForCertainLanguageImplementation($lUid) { |
| 81 | 81 | if ($lUid > 0) { |
@@ -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 |