@@ -137,6 +137,9 @@ |
||
| 137 | 137 | return $result; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $view_id |
|
| 142 | + */ |
|
| 140 | 143 | public static function deleteByViewId($view_id = null) |
| 141 | 144 | { |
| 142 | 145 | if (null === $view_id) { |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * @param string $key |
| 94 | 94 | * @param bool $valueOnly |
| 95 | 95 | * @param mixed $defaultValue |
| 96 | - * @return ContentBlock|string |
|
| 96 | + * @return string |
|
| 97 | 97 | */ |
| 98 | 98 | public static function getChunk($key, $valueOnly = true, $defaultValue = null) |
| 99 | 99 | { |
@@ -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); |