@@ -29,6 +29,9 @@ discard block |
||
| 29 | 29 | public $params = []; |
| 30 | 30 | public $distinct = false; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param $instance |
|
| 34 | + */ |
|
| 32 | 35 | function __construct($instance = null) |
| 33 | 36 | { |
| 34 | 37 | if (!$instance) { |
@@ -47,6 +50,9 @@ discard block |
||
| 47 | 50 | return $this->curInstance->pdo->lastInsertId(); |
| 48 | 51 | } |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $table |
|
| 55 | + */ |
|
| 50 | 56 | public function select($table) |
| 51 | 57 | { |
| 52 | 58 | $this->operation = 'SELECT'; |
@@ -283,7 +283,6 @@ discard block |
||
| 283 | 283 | /** |
| 284 | 284 | * Getting items with params |
| 285 | 285 | * |
| 286 | - * @param array $params |
|
| 287 | 286 | * @return array |
| 288 | 287 | */ |
| 289 | 288 | function getItems($options = []) |
@@ -296,7 +295,6 @@ discard block |
||
| 296 | 295 | /** |
| 297 | 296 | * Return count of items with params |
| 298 | 297 | * |
| 299 | - * @param array $params |
|
| 300 | 298 | * @return int |
| 301 | 299 | */ |
| 302 | 300 | function getItemsCount($options = []) |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | public $xml = null; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param \SimpleXMLElement $xml |
|
| 20 | + */ |
|
| 18 | 21 | function __construct($xml) |
| 19 | 22 | { |
| 20 | 23 | $this->xml = $xml; |
@@ -79,6 +82,9 @@ discard block |
||
| 79 | 82 | } |
| 80 | 83 | } |
| 81 | 84 | |
| 85 | + /** |
|
| 86 | + * @param \Model $cart |
|
| 87 | + */ |
|
| 82 | 88 | function updateCartItems($cart, $items) |
| 83 | 89 | { |
| 84 | 90 | $itemIds = []; |
@@ -45,6 +45,10 @@ |
||
| 45 | 45 | return $modelCols; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $colPrefix |
|
| 50 | + * @param string $tableName |
|
| 51 | + */ |
|
| 48 | 52 | function parseColsForTable($cols, $colPrefix, $tableName) |
| 49 | 53 | { |
| 50 | 54 | |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | /** |
| 281 | 281 | * Draw error message |
| 282 | 282 | * |
| 283 | - * @param text $errorText |
|
| 283 | + * @param string $errorText |
|
| 284 | 284 | */ |
| 285 | 285 | function drawError($errorText) |
| 286 | 286 | { |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return null; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @return string |
|
| 88 | + */ |
|
| 86 | 89 | function colName() |
| 87 | 90 | { |
| 88 | 91 | return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}][{$this->colName}]"; |
@@ -319,6 +319,9 @@ discard block |
||
| 319 | 319 | return $rows; |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | + /** |
|
| 323 | + * @param DataManager $dataManager |
|
| 324 | + */ |
|
| 322 | 325 | static function drawCol($item, $colName, $params = [], $dataManager = null, $originalCol = '', $originalItem = null) |
| 323 | 326 | { |
| 324 | 327 | $modelName = get_class($item); |
@@ -668,7 +671,7 @@ discard block |
||
| 668 | 671 | /** |
| 669 | 672 | * Draw error message |
| 670 | 673 | * |
| 671 | - * @param text $errorText |
|
| 674 | + * @param string $errorText |
|
| 672 | 675 | */ |
| 673 | 676 | function drawError($errorText) |
| 674 | 677 | { |
@@ -45,6 +45,10 @@ |
||
| 45 | 45 | \App::$cur->view->widget('Ui\\' . $this->options['widgetsDir'] . '/begin', $params); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $type |
|
| 50 | + * @param string $name |
|
| 51 | + */ |
|
| 48 | 52 | function input($type, $name, $label = '', $options = []) |
| 49 | 53 | { |
| 50 | 54 | switch ($type) { |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | public $attributes = []; |
| 24 | 24 | public $indexCol = null; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string[] $cols |
|
| 28 | + */ |
|
| 26 | 29 | function setCols($cols) |
| 27 | 30 | { |
| 28 | 31 | $this->cols = $cols; |