@@ -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'; |
@@ -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) |
@@ -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'; |
@@ -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 | { |
@@ -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; |
@@ -92,6 +92,9 @@ discard block |
||
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $user_mail |
|
97 | + */ |
|
95 | 98 | function passre($user_mail) |
96 | 99 | { |
97 | 100 | $user = $this->get($user_mail, 'mail'); |
@@ -312,6 +315,9 @@ discard block |
||
312 | 315 | return $user->id; |
313 | 316 | } |
314 | 317 | |
318 | + /** |
|
319 | + * @param string $pass |
|
320 | + */ |
|
315 | 321 | function hashpass($pass) |
316 | 322 | { |
317 | 323 | return password_hash($pass, PASSWORD_DEFAULT); |