@@ -58,6 +58,10 @@ |
||
| 58 | 58 | self::command('install', false, $path); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $command |
|
| 63 | + * @param string $path |
|
| 64 | + */ |
|
| 61 | 65 | static function command($command, $needOutput = true, $path = null) |
| 62 | 66 | { |
| 63 | 67 | include_once 'composer/vendor/autoload.php'; |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * Get all posible directorys for module files |
| 82 | 82 | * |
| 83 | 83 | * @param string $moduleName |
| 84 | - * @return array |
|
| 84 | + * @return string |
|
| 85 | 85 | */ |
| 86 | 86 | static function getModulePaths($moduleName) |
| 87 | 87 | { |
@@ -216,6 +216,7 @@ |
||
| 216 | 216 | * @param $number Integer Число на основе которого нужно сформировать окончание |
| 217 | 217 | * @param $endingsArray Array Массив слов или окончаний для чисел (1, 4, 5), |
| 218 | 218 | * например array('яблоко', 'яблока', 'яблок') |
| 219 | + * @param string[] $endingArray |
|
| 219 | 220 | * @return String |
| 220 | 221 | */ |
| 221 | 222 | static function getNumEnding($number, $endingArray) |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | public $model = null; |
| 15 | 15 | public $type = 'string'; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param Model $model |
|
| 19 | + */ |
|
| 17 | 20 | function __construct($model, $key) |
| 18 | 21 | { |
| 19 | 22 | $this->model = $model; |
@@ -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 = []) |
@@ -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 | { |
@@ -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 | { |