@@ -12,8 +12,19 @@ |
||
12 | 12 | |
13 | 13 | abstract class AbstractImportCsv extends Import |
14 | 14 | { |
15 | + /** |
|
16 | + * @param resource $handle |
|
17 | + */ |
|
15 | 18 | abstract protected function getCsv($handle); |
19 | + |
|
20 | + /** |
|
21 | + * @param resource $handle |
|
22 | + */ |
|
16 | 23 | abstract protected function putCsv($handle, $fields); |
24 | + |
|
25 | + /** |
|
26 | + * @param resource $handle |
|
27 | + */ |
|
17 | 28 | abstract protected function putHeader($handle, $fields); |
18 | 29 | |
19 | 30 | public function setData() |
@@ -264,6 +264,9 @@ |
||
264 | 264 | return $result; |
265 | 265 | } |
266 | 266 | |
267 | + /** |
|
268 | + * @param integer $parent |
|
269 | + */ |
|
267 | 270 | public function parseGruppa($parent) |
268 | 271 | { |
269 | 272 | if (null === $this->xml) { |
@@ -31,6 +31,10 @@ discard block |
||
31 | 31 | /* |
32 | 32 | * Export method |
33 | 33 | */ |
34 | + |
|
35 | + /** |
|
36 | + * @param string[] $header |
|
37 | + */ |
|
34 | 38 | abstract public function getData($header, $data); |
35 | 39 | /* |
36 | 40 | * Import method |
@@ -133,6 +137,7 @@ discard block |
||
133 | 137 | * @param array $propertiesFields |
134 | 138 | * @param array $row |
135 | 139 | * @param array $titleFields |
140 | + * @param integer $columnsCount |
|
136 | 141 | * @throws \Exception |
137 | 142 | */ |
138 | 143 | protected function save($objectId, $object, $objectFields = [], $properties = [], $propertiesFields = [], $row=[], $titleFields=[], $columnsCount = null) |
@@ -280,7 +285,6 @@ discard block |
||
280 | 285 | } |
281 | 286 | |
282 | 287 | /** |
283 | - * @param array $exportFields |
|
284 | 288 | * @return array |
285 | 289 | */ |
286 | 290 | public function getAllFields($fields = []) |
@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * Unified action for import and export |
61 | 61 | * @param $id |
62 | - * @param $importMode |
|
62 | + * @param boolean $importMode |
|
63 | 63 | * @return string|\yii\web\Response |
64 | 64 | * @throws ErrorException |
65 | 65 | */ |
@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | protected $backendLink; |
23 | 23 | protected static $classNames; |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $id |
|
27 | + */ |
|
25 | 28 | protected function getPageLinks($id) |
26 | 29 | { |
27 | 30 | /** @var Page $model */ |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | } |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param integer $id |
|
54 | + */ |
|
49 | 55 | protected function getCategoryLinks($id) |
50 | 56 | { |
51 | 57 | $model = Category::findById($id, null); |
@@ -72,6 +78,9 @@ discard block |
||
72 | 78 | } |
73 | 79 | } |
74 | 80 | |
81 | + /** |
|
82 | + * @param integer $id |
|
83 | + */ |
|
75 | 84 | protected function getProductLinks($id) |
76 | 85 | { |
77 | 86 | $model = Product::findById($id, null); |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return $dataProvider; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $demand |
|
98 | + */ |
|
96 | 99 | public static function getByDemand($demand) |
97 | 100 | { |
98 | 101 | $sizes = explode('x', $demand); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Return thumbnail width watermark or create if not exist |
65 | - * @param $thumb Thumbnail |
|
65 | + * @param Thumbnail $thumb Thumbnail |
|
66 | 66 | * @param $water Watermark |
67 | 67 | * @return thumbnail |
68 | 68 | */ |
@@ -121,7 +121,7 @@ |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
124 | - * @param null $name |
|
124 | + * @param string|null $name |
|
125 | 125 | * @return array|null|\yii\db\ActiveRecord |
126 | 126 | */ |
127 | 127 | public static function getGroupByName($name = null) |
@@ -145,6 +145,7 @@ |
||
145 | 145 | /** |
146 | 146 | * Получает отзывы по конкретной инстанции модели |
147 | 147 | * @var $models \app\modules\review\models\Review[] |
148 | + * @param integer $formId |
|
148 | 149 | * @return array |
149 | 150 | */ |
150 | 151 | public static function getForObjectModel($object_model_id, $object_id, $formId, $sort = SORT_ASC) |