@@ -142,7 +142,7 @@ |
||
142 | 142 | /** |
143 | 143 | * Get an array with all the effect param options, based on the effect params defintion. |
144 | 144 | * |
145 | - * @param array $effectParamsDefintion |
|
145 | + * @param array $effectParams |
|
146 | 146 | * |
147 | 147 | * @throws Exception When the vars key does not exists in the effect definition. |
148 | 148 | * |
@@ -48,6 +48,9 @@ |
||
48 | 48 | $this->throwException(__METHOD__); |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $method |
|
53 | + */ |
|
51 | 54 | private function throwException($method) |
52 | 55 | { |
53 | 56 | throw new \Exception('The action '.$method.' is not yet supported.'); |
@@ -25,6 +25,10 @@ discard block |
||
25 | 25 | return ($create + $update + $delete); |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param integer $type |
|
30 | + * @param integer $permissionWeight |
|
31 | + */ |
|
28 | 32 | public function permissionVerify($type, $permissionWeight) |
29 | 33 | { |
30 | 34 | $numbers = []; |
@@ -76,9 +80,6 @@ discard block |
||
76 | 80 | /** |
77 | 81 | * see if the user id matches against the moduleName, controllerName, actionName inside of the rights database. |
78 | 82 | * |
79 | - * @param string $moduleName Module Name |
|
80 | - * @param string $controllerName The name of the controller without suffix "Controller" |
|
81 | - * @param string $actionName The name of the action without prefix "action"; |
|
82 | 83 | * |
83 | 84 | * @return bool |
84 | 85 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | /** |
418 | 418 | * |
419 | 419 | * @param unknown $folderName |
420 | - * @param number $parentFolderId |
|
420 | + * @param integer $parentFolderId |
|
421 | 421 | * @return boolean |
422 | 422 | */ |
423 | 423 | public function addFolder($folderName, $parentFolderId = 0) |
@@ -453,6 +453,9 @@ discard block |
||
453 | 453 | return (isset($this->filtersArray[$filterIdentifier])) ? $this->filtersArray[$filterIdentifier] : false; |
454 | 454 | } |
455 | 455 | |
456 | + /** |
|
457 | + * @param string $key |
|
458 | + */ |
|
456 | 459 | protected function getQueryCacheHelper(\yii\db\Query $query, $key) |
457 | 460 | { |
458 | 461 | $data = $this->getHasCache($key); |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | * So you need to use the "%u" formatter of sprintf() or printf() to get the string representation of the unsigned crc32() checksum in decimal format. |
30 | 30 | * |
31 | 31 | * @var string |
32 | + * @param string $fileName |
|
32 | 33 | */ |
33 | 34 | public static function createFileHash($fileName) |
34 | 35 | { |
@@ -133,7 +134,7 @@ discard block |
||
133 | 134 | /** |
134 | 135 | * |
135 | 136 | * @param array $fileArray Its an entry of the files array like $_FILEs['logo_image']; |
136 | - * @param number $toFolder |
|
137 | + * @param integer $toFolder |
|
137 | 138 | * @param string $isHidden |
138 | 139 | */ |
139 | 140 | public static function uploadFromFileArray(array $fileArray, $toFolder = 0, $isHidden = false) |
@@ -194,7 +195,7 @@ discard block |
||
194 | 195 | /** |
195 | 196 | * |
196 | 197 | * @param array $filesArray Use $_FILES |
197 | - * @param number $toFolder |
|
198 | + * @param integer $toFolder |
|
198 | 199 | * @param string $isHidden |
199 | 200 | * |
200 | 201 | * @todo what happen if $files does have more then one entry, as the response is limit to 1 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * |
41 | - * @return string|boolean |
|
41 | + * @return string|false |
|
42 | 42 | */ |
43 | 43 | public function getSource() |
44 | 44 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * |
56 | - * @return string|boolean |
|
56 | + * @return string|false |
|
57 | 57 | */ |
58 | 58 | public function getServerSource() |
59 | 59 | { |
@@ -7,6 +7,9 @@ |
||
7 | 7 | |
8 | 8 | class FilterImporter extends \luya\base\Importer |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $identifier |
|
12 | + */ |
|
10 | 13 | private function refresh($identifier, $fields) |
11 | 14 | { |
12 | 15 | $model = StorageEffect::find()->where(['identifier' => $identifier])->one(); |
@@ -9,11 +9,17 @@ discard block |
||
9 | 9 | return 'admin_config'; |
10 | 10 | } |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $name |
|
14 | + */ |
|
12 | 15 | public static function has($name) |
13 | 16 | { |
14 | 17 | return (self::find()->where(['name' => $name])->one()) ? true : false; |
15 | 18 | } |
16 | 19 | |
20 | + /** |
|
21 | + * @param string $name |
|
22 | + */ |
|
17 | 23 | public static function get($name) |
18 | 24 | { |
19 | 25 | $model = self::find()->where(['name' => $name])->asArray()->one(); |
@@ -25,6 +31,10 @@ discard block |
||
25 | 31 | return; |
26 | 32 | } |
27 | 33 | |
34 | + /** |
|
35 | + * @param string $name |
|
36 | + * @param integer $value |
|
37 | + */ |
|
28 | 38 | public static function set($name, $value) |
29 | 39 | { |
30 | 40 | $model = self::find()->where(['name' => $name])->one(); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * We can not global set is_deleted=0 to the where condition cause in some parts of the storage we want |
41 | 41 | * to access the name_new_compound to rebuild old image paths. |
42 | 42 | * |
43 | - * @return \yii\db\$this |
|
43 | + * @return \yii\db\ActiveQuery |
|
44 | 44 | */ |
45 | 45 | public static function find() |
46 | 46 | { |