@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | return $this->_model; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $type |
|
| 31 | + */ |
|
| 29 | 32 | protected function createBaseElement($doc, $type) |
| 30 | 33 | { |
| 31 | 34 | $elmn = $doc->createElement($type); |
@@ -47,6 +50,9 @@ discard block |
||
| 47 | 50 | $this->i18n = $i18n; |
| 48 | 51 | } |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $name |
|
| 55 | + */ |
|
| 50 | 56 | public function getServiceName($name) |
| 51 | 57 | { |
| 52 | 58 | return 'service.'.$this->name.'.'.$name; |
@@ -105,11 +105,6 @@ |
||
| 105 | 105 | * |
| 106 | 106 | * ``` |
| 107 | 107 | * |
| 108 | - * @param string|array $type the object type. This can be specified in one of the following forms: |
|
| 109 | - * |
|
| 110 | - * - a string: representing the class name of the object to be created |
|
| 111 | - * - a configuration array: the array must contain a `class` element which is treated as the object class, |
|
| 112 | - * and the rest of the name-value pairs will be used to initialize the corresponding object properties |
|
| 113 | 108 | * |
| 114 | 109 | * @since 1.0.0-beta4 |
| 115 | 110 | */ |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $this->render->render(); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @return Config |
|
| 45 | + */ |
|
| 43 | 46 | public static function findConfig($ngRestConfigHash) |
| 44 | 47 | { |
| 45 | 48 | // decode the session, find the hash, if yes return the |
@@ -226,6 +226,12 @@ discard block |
||
| 226 | 226 | ]; |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | + /** |
|
| 230 | + * @param string $configContext |
|
| 231 | + * @param string $elmnId |
|
| 232 | + * @param string $elmnModel |
|
| 233 | + * @param boolean $elmni18n |
|
| 234 | + */ |
|
| 229 | 235 | private function renderElementPlugins($configContext, $plugins, $elmnId, $elmnName, $elmnModel, $elmnAlias, $elmni18n) |
| 230 | 236 | { |
| 231 | 237 | $doc = new DOMDocument('1.0'); |
@@ -247,11 +253,17 @@ discard block |
||
| 247 | 253 | return $obj->$method($DOMDocument); |
| 248 | 254 | } |
| 249 | 255 | |
| 256 | + /** |
|
| 257 | + * @param string $configContext |
|
| 258 | + */ |
|
| 250 | 259 | private function ngModelString($configContext, $fieldId) |
| 251 | 260 | { |
| 252 | 261 | return 'data.'.$configContext.'.'.$fieldId; |
| 253 | 262 | } |
| 254 | 263 | |
| 264 | + /** |
|
| 265 | + * @param string $configContext |
|
| 266 | + */ |
|
| 255 | 267 | private function i18nNgModelString($configContext, $fieldId, $lang) |
| 256 | 268 | { |
| 257 | 269 | return 'data.'.$configContext.'.'.$fieldId.'[\''.$lang.'\']'; |
@@ -113,7 +113,6 @@ discard block |
||
| 113 | 113 | * Class constructor to DI the request object. |
| 114 | 114 | * |
| 115 | 115 | * @param \luya\web\Request $request |
| 116 | - * @param \luya\components\Composition $composition |
|
| 117 | 116 | * @param array $config |
| 118 | 117 | */ |
| 119 | 118 | public function __construct(\luya\web\Request $request, array $config = []) |
@@ -370,7 +369,7 @@ discard block |
||
| 370 | 369 | * |
| 371 | 370 | * @see \cms\menu\Query::where() |
| 372 | 371 | * |
| 373 | - * @return \cms\menu\QueryIterator |
|
| 372 | + * @return QueryIteratorFilter |
|
| 374 | 373 | */ |
| 375 | 374 | public function findAll(array $where) |
| 376 | 375 | { |
@@ -448,6 +447,7 @@ discard block |
||
| 448 | 447 | * prepand the base url for the provided alias. |
| 449 | 448 | * |
| 450 | 449 | * @param string $alias |
| 450 | + * @param string $langShortCode |
|
| 451 | 451 | * |
| 452 | 452 | * @return string |
| 453 | 453 | */ |
@@ -229,6 +229,7 @@ discard block |
||
| 229 | 229 | |
| 230 | 230 | /** |
| 231 | 231 | * Internal used to retriev redirect data if any |
| 232 | + * @param string $key |
|
| 232 | 233 | * @return multitype: |
| 233 | 234 | */ |
| 234 | 235 | protected function redirectMapData($key) |
@@ -313,7 +314,7 @@ discard block |
||
| 313 | 314 | /** |
| 314 | 315 | * Get all sibilings for the current item, this also includes the current item iteself. |
| 315 | 316 | * |
| 316 | - * @return array An array with all item-object siblings |
|
| 317 | + * @return QueryIteratorFilter An array with all item-object siblings |
|
| 317 | 318 | * @since 1.0.0-beta3 |
| 318 | 319 | */ |
| 319 | 320 | public function getSiblings() |
@@ -342,7 +343,7 @@ discard block |
||
| 342 | 343 | /** |
| 343 | 344 | * Get all children of the current item. Children means going the depth/menulevel down e.g. from 1 to 2. |
| 344 | 345 | * |
| 345 | - * @return \cms\menu\QueryIterator Returns all children |
|
| 346 | + * @return QueryIteratorFilter Returns all children |
|
| 346 | 347 | */ |
| 347 | 348 | public function getChildren() |
| 348 | 349 | { |
@@ -369,6 +370,7 @@ discard block |
||
| 369 | 370 | * |
| 370 | 371 | * @see \cms\menu\Query::with() |
| 371 | 372 | * |
| 373 | + * @param string $with |
|
| 372 | 374 | * @return \cms\menu\Item; |
| 373 | 375 | */ |
| 374 | 376 | public function with($with) |
@@ -155,8 +155,6 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @param string|array $with can be a string containg "hidden" or an array with multiple patters |
|
| 159 | - * for example `['hidden']`. Further with statements upcoming. |
|
| 160 | 158 | * @return \cms\menu\Query |
| 161 | 159 | */ |
| 162 | 160 | public function with($types) |
@@ -239,7 +237,7 @@ discard block |
||
| 239 | 237 | * Retrieve all found rows based on the filtering options and returns the the QueryIterator object |
| 240 | 238 | * which is represents an array. |
| 241 | 239 | * |
| 242 | - * @return \cms\menu\QueryIterator Returns the QueryIterator object. |
|
| 240 | + * @return QueryIteratorFilter Returns the QueryIterator object. |
|
| 243 | 241 | */ |
| 244 | 242 | public function all() |
| 245 | 243 | { |
@@ -262,7 +260,7 @@ discard block |
||
| 262 | 260 | * |
| 263 | 261 | * @param array $data The filtere results where the iterator object should be created with |
| 264 | 262 | * @param string $langContext The language short code context, if any. |
| 265 | - * @return \cms\menu\QueryIterator |
|
| 263 | + * @return QueryIteratorFilter |
|
| 266 | 264 | */ |
| 267 | 265 | public static function createArrayIterator(array $data, $langContext) |
| 268 | 266 | { |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | class NavController extends \admin\base\RestController |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @param string $name |
|
| 24 | + */ |
|
| 22 | 25 | private function postArg($name) |
| 23 | 26 | { |
| 24 | 27 | return Yii::$app->request->post($name, null); |
@@ -170,7 +173,6 @@ discard block |
||
| 170 | 173 | /** |
| 171 | 174 | * creates a new nav entry for the type page (nav_id will be created. |
| 172 | 175 | * |
| 173 | - * @param array $_POST: |
|
| 174 | 176 | */ |
| 175 | 177 | public function actionCreatePage() |
| 176 | 178 | { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * ] |
| 92 | 92 | * ``` |
| 93 | 93 | * |
| 94 | - * @param int $node parent_nav_id value |
|
| 94 | + * @param integer $parentNavId |
|
| 95 | 95 | */ |
| 96 | 96 | private function getFromParentNode($parentNavId) |
| 97 | 97 | { |