| @@ -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 | } | 
| @@ -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) { | 
| @@ -382,7 +382,7 @@ discard block | ||
| 382 | 382 | /** | 
| 383 | 383 | * returns array with the visibility options that are allowed for the current user. | 
| 384 | 384 | * | 
| 385 | - * @param tx_languagevisibility_language $language | |
| 385 | + * @param Language $language | |
| 386 | 386 | * @param bool $isOverlay | 
| 387 | 387 | * @param null $element | 
| 388 | 388 | * @return array | 
| @@ -465,7 +465,7 @@ discard block | ||
| 465 | 465 | } | 
| 466 | 466 | |
| 467 | 467 | /** | 
| 468 | - * @return mixed | |
| 468 | + * @return integer | |
| 469 | 469 | */ | 
| 470 | 470 |  	protected static function _guessCurrentPid() { | 
| 471 | 471 |  		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) { | 
| @@ -279,6 +279,9 @@ | ||
| 279 | 279 | return $output; | 
| 280 | 280 | } | 
| 281 | 281 | |
| 282 | + /** | |
| 283 | + * @param boolean $stat | |
| 284 | + */ | |
| 282 | 285 |  	protected function _getStatusImage($stat) { | 
| 283 | 286 |  		if ($stat) { | 
| 284 | 287 | return '<img src="' . $GLOBALS['BACK_PATH'] . '../typo3conf/ext/languagevisibility/Resources/Public/Icons/ok.gif">'; |