@@ -168,7 +168,6 @@ discard block |
||
168 | 168 | * @param Model $item |
169 | 169 | * @param string $colName |
170 | 170 | * @param boolean $manageHref |
171 | - * @param array $params |
|
172 | 171 | * @return string |
173 | 172 | */ |
174 | 173 | public static function resloveTypeValue($item, $colName, $manageHref = false, $colInfo = []) { |
@@ -794,7 +793,7 @@ discard block |
||
794 | 793 | /** |
795 | 794 | * return relations list |
796 | 795 | * |
797 | - * @return array |
|
796 | + * @return string |
|
798 | 797 | */ |
799 | 798 | public static function relations() { |
800 | 799 | return []; |
@@ -10,6 +10,10 @@ |
||
10 | 10 | class Text extends \Object { |
11 | 11 | public static $strings = []; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $module |
|
15 | + * @param string $code |
|
16 | + */ |
|
13 | 17 | public static function module($module, $code, $params = [], $default = false, $lang = false) { |
14 | 18 | $paramsKeys = array_keys($params); |
15 | 19 | foreach ($paramsKeys as &$paramsKey) { |
@@ -257,6 +257,9 @@ |
||
257 | 257 | return $user; |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param boolean $msg |
|
262 | + */ |
|
260 | 263 | private function msgOrErr($err, $msg) { |
261 | 264 | if ($msg) { |
262 | 265 | Msg::add($err, 'danger'); |
@@ -100,6 +100,9 @@ |
||
100 | 100 | return !empty($this->_objects[$moduleName]); |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @return string |
|
105 | + */ |
|
103 | 106 | public function getDomain($decode = false) { |
104 | 107 | return !empty($this->config['site']['domain']) ? $this->config['site']['domain'] : ($decode ? idn_to_utf8(INJI_DOMAIN_NAME) : INJI_DOMAIN_NAME); |
105 | 108 | } |
@@ -128,6 +128,7 @@ |
||
128 | 128 | * Get cache dir for app |
129 | 129 | * |
130 | 130 | * @param App $app |
131 | + * @param string $dirname |
|
131 | 132 | * @return string |
132 | 133 | */ |
133 | 134 | public static function getDir($dirname, $app = null) { |
@@ -83,6 +83,9 @@ |
||
83 | 83 | $mr->save(); |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param integer $userId |
|
88 | + */ |
|
86 | 89 | public function getUserBlocks($userId = null) { |
87 | 90 | $userId = $userId ? $userId : \Users\User::$cur->id; |
88 | 91 | $blocked = \Money\Wallet\Block::getList(['where' => [ |
@@ -549,6 +549,9 @@ |
||
549 | 549 | return $summarys; |
550 | 550 | } |
551 | 551 | |
552 | + /** |
|
553 | + * @param DataManager $dataManager |
|
554 | + */ |
|
552 | 555 | public static function drawCol($item, $colName, $params = [], $dataManager = null, $originalCol = '', $originalItem = null) { |
553 | 556 | $modelName = get_class($item); |
554 | 557 | if (!class_exists($modelName)) { |
@@ -86,6 +86,9 @@ |
||
86 | 86 | ]; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @return string |
|
91 | + */ |
|
89 | 92 | public function name() { |
90 | 93 | if ($this->first_name . $this->last_name . $this->middle_name) { |
91 | 94 | $name = ''; |
@@ -452,6 +452,9 @@ |
||
452 | 452 | } |
453 | 453 | } |
454 | 454 | |
455 | + /** |
|
456 | + * @param string $dir |
|
457 | + */ |
|
455 | 458 | public static function getDirContents($dir, &$results = array(), $curPath = '') { |
456 | 459 | $files = scandir($dir); |
457 | 460 | foreach ($files as $key => $value) { |