@@ -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 | } |
@@ -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) { |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | * This method can be used to retrieve an informal description for the visibility of an element |
| 275 | 275 | * |
| 276 | 276 | * @param tx_languagevisibility_language $language |
| 277 | - * @param tx_languagevisibility_element $element |
|
| 277 | + * @param \AOE\Languagevisibility\Element $element |
|
| 278 | 278 | * @return string |
| 279 | 279 | */ |
| 280 | 280 | public function getVisibilityDescription(Language $language, Element $element) { |
@@ -129,6 +129,9 @@ |
||
| 129 | 129 | return array_combine(array_map(function($row) { return $row[3]; }, $testDataSet), $testDataSet); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | + /** |
|
| 133 | + * @param integer $uid |
|
| 134 | + */ |
|
| 132 | 135 | protected function getContentElementRow($uid) { |
| 133 | 136 | return $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow( |
| 134 | 137 | '*', |