@@ -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; |
@@ -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); |
@@ -147,6 +147,9 @@ discard block |
||
| 147 | 147 | return $result[1]; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $source |
|
| 152 | + */ |
|
| 150 | 153 | function parseSource($source) |
| 151 | 154 | { |
| 152 | 155 | $tags = $this->parseRaw($source); |
@@ -190,6 +193,9 @@ discard block |
||
| 190 | 193 | return substr($source, ( $pos + strlen($rawTag) + 2)); |
| 191 | 194 | } |
| 192 | 195 | |
| 196 | + /** |
|
| 197 | + * @param string $type |
|
| 198 | + */ |
|
| 193 | 199 | function getHref($type, $params) |
| 194 | 200 | { |
| 195 | 201 | $href = ''; |
@@ -531,6 +537,9 @@ discard block |
||
| 531 | 537 | echo round(( microtime(true) - INJI_TIME_START), 4); |
| 532 | 538 | } |
| 533 | 539 | |
| 540 | + /** |
|
| 541 | + * @param string $type |
|
| 542 | + */ |
|
| 534 | 543 | function customAsset($type, $asset, $lib = false) |
| 535 | 544 | { |
| 536 | 545 | if (!$lib) { |
@@ -549,6 +558,9 @@ discard block |
||
| 549 | 558 | } |
| 550 | 559 | } |
| 551 | 560 | |
| 561 | + /** |
|
| 562 | + * @param string $lineParams |
|
| 563 | + */ |
|
| 552 | 564 | function widget($_widgetName, $_params = [], $lineParams = null) |
| 553 | 565 | { |
| 554 | 566 | $_paths = $this->getWidgetPaths($_widgetName); |
@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $return; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $path |
|
| 36 | + */ |
|
| 34 | 37 | static function parseClass($path) |
| 35 | 38 | { |
| 36 | 39 | $code = file_get_contents($path); |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | public $name = 'class'; |
| 19 | 19 | public $extends = ''; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $name |
|
| 23 | + */ |
|
| 21 | 24 | function addProperty($name, $value = null, $static = false, $security = 'public') |
| 22 | 25 | { |
| 23 | 26 | $this->propertys[$name] = new Property(); |
@@ -27,6 +30,9 @@ discard block |
||
| 27 | 30 | $this->propertys[$name]->security = $security; |
| 28 | 31 | } |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $name |
|
| 35 | + */ |
|
| 30 | 36 | function addMethod($name, $body = '', $propertys = [], $static = false, $security = 'public') |
| 31 | 37 | { |
| 32 | 38 | $this->methods[$name] = new Method(); |