@@ -269,7 +269,7 @@ |
||
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | - * @param ActiveRecord|HasProperties $model |
|
| 272 | + * @param \app\modules\shop\models\Customer $model |
|
| 273 | 273 | * @param string $idAttribute |
| 274 | 274 | * @return bool |
| 275 | 275 | */ |
@@ -79,6 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Возвращает модель по ID с использованием IdentityMap |
| 82 | + * @param integer $id |
|
| 82 | 83 | */ |
| 83 | 84 | public static function findById($id) |
| 84 | 85 | { |
@@ -139,7 +140,7 @@ discard block |
||
| 139 | 140 | } |
| 140 | 141 | |
| 141 | 142 | /** |
| 142 | - * @param $name |
|
| 143 | + * @param string $name |
|
| 143 | 144 | * @return null|int |
| 144 | 145 | */ |
| 145 | 146 | public static function findByName($name) |
@@ -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 | */ |