@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | class altsysUtils |
| 7 | 7 | { |
| 8 | 8 | /** |
| 9 | - * @param $name |
|
| 9 | + * @param string $name |
|
| 10 | 10 | * @param bool $doRegist |
| 11 | 11 | * @return array |
| 12 | 12 | */ |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * @param int $flags |
| 81 | 81 | * @param null $encoding |
| 82 | 82 | * @param bool $double_encode |
| 83 | - * @return mixed|string |
|
| 83 | + * @return string |
|
| 84 | 84 | */ |
| 85 | 85 | |
| 86 | 86 | public static function htmlSpecialChars($str, $flags = ENT_COMPAT, $encoding = null, $double_encode = true) |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @param $resource |
|
| 62 | + * @param string $resource |
|
| 63 | 63 | * @param $mydirname |
| 64 | 64 | * @param null $mytrustdirname |
| 65 | 65 | * @param bool $read_once |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * @param array $extra_tags |
| 75 | 75 | * @param array $user_list |
| 76 | 76 | * @param null $omit_user_id |
| 77 | - * @return bool|void |
|
| 77 | + * @return null|false |
|
| 78 | 78 | */ |
| 79 | 79 | |
| 80 | 80 | public function triggerEvent($mydirname, $mytrustdirname, $category, $item_id, $event, $extra_tags = [], $user_list = [], $omit_user_id = null) |
@@ -359,7 +359,7 @@ |
||
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | /** |
| 362 | - * @param $name |
|
| 362 | + * @param string $name |
|
| 363 | 363 | * @param $options |
| 364 | 364 | * @param $current_value |
| 365 | 365 | * @return string |
@@ -1145,7 +1145,7 @@ discard block |
||
| 1145 | 1145 | } |
| 1146 | 1146 | |
| 1147 | 1147 | /** |
| 1148 | - * @param $bid |
|
| 1148 | + * @param integer $bid |
|
| 1149 | 1149 | * @param string $mode |
| 1150 | 1150 | */ |
| 1151 | 1151 | |
@@ -1353,7 +1353,7 @@ discard block |
||
| 1353 | 1353 | |
| 1354 | 1354 | /** |
| 1355 | 1355 | * @param $bctype |
| 1356 | - * @return mixed|string |
|
| 1356 | + * @return string |
|
| 1357 | 1357 | */ |
| 1358 | 1358 | |
| 1359 | 1359 | public function get_blockname_from_ctype($bctype) |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | |
| 118 | 118 | $moduleHandler = xoops_getHandler('module'); |
| 119 | 119 | |
| 120 | - if (! empty($_GET['dirname'])) { |
|
| 120 | + if (! empty($_GET['dirname'])) { |
|
| 121 | 121 | $dirname = preg_replace('/[^0-9a-zA-Z_-]/', '', \Xmf\Request::getString('dirname', '', 'GET')); |
| 122 | 122 | |
| 123 | 123 | $target_module = $moduleHandler->getByDirname($dirname); |
@@ -558,12 +558,12 @@ discard block |
||
| 558 | 558 | ]; |
| 559 | 559 | |
| 560 | 560 | $blocks4assign[] = [ |
| 561 | - 'name_raw' => $block_data['name'], |
|
| 562 | - 'title_raw' => $block_data['title'], |
|
| 563 | - 'cell_position' => $this->renderCell4BlockPosition($block_data), |
|
| 564 | - 'cell_module_link' => $this->renderCell4BlockModuleLink($block_data), |
|
| 565 | - 'cell_group_perm' => $this->renderCell4BlockReadGroupPerm($block_data), |
|
| 566 | - ] + $block_data; |
|
| 561 | + 'name_raw' => $block_data['name'], |
|
| 562 | + 'title_raw' => $block_data['title'], |
|
| 563 | + 'cell_position' => $this->renderCell4BlockPosition($block_data), |
|
| 564 | + 'cell_module_link' => $this->renderCell4BlockModuleLink($block_data), |
|
| 565 | + 'cell_group_perm' => $this->renderCell4BlockReadGroupPerm($block_data), |
|
| 566 | + ] + $block_data; |
|
| 567 | 567 | } |
| 568 | 568 | |
| 569 | 569 | // display |
@@ -573,14 +573,14 @@ discard block |
||
| 573 | 573 | $tpl = new D3Tpl(); |
| 574 | 574 | |
| 575 | 575 | $tpl->assign([ |
| 576 | - 'target_mid' => $this->target_mid, |
|
| 577 | - 'target_dirname' => $this->target_dirname, |
|
| 578 | - 'target_mname' => $this->target_mname, |
|
| 579 | - 'language' => $this->lang, |
|
| 580 | - 'cachetime_options' => $this->cachetime_options, |
|
| 581 | - 'blocks' => $blocks4assign, |
|
| 582 | - 'gticket_hidden' => $xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin'), |
|
| 583 | - ]); |
|
| 576 | + 'target_mid' => $this->target_mid, |
|
| 577 | + 'target_dirname' => $this->target_dirname, |
|
| 578 | + 'target_mname' => $this->target_mname, |
|
| 579 | + 'language' => $this->lang, |
|
| 580 | + 'cachetime_options' => $this->cachetime_options, |
|
| 581 | + 'blocks' => $blocks4assign, |
|
| 582 | + 'gticket_hidden' => $xoopsGTicket->getTicketHtml(__LINE__, 1800, 'myblocksadmin'), |
|
| 583 | + ]); |
|
| 584 | 584 | |
| 585 | 585 | $tpl->display('db:altsys_main_myblocksadmin_list.html'); |
| 586 | 586 | } |
@@ -1274,18 +1274,18 @@ discard block |
||
| 1274 | 1274 | } |
| 1275 | 1275 | |
| 1276 | 1276 | $tpl->assign([ |
| 1277 | - 'target_dirname' => $this->target_dirname, |
|
| 1278 | - 'target_mname' => $this->target_mname, |
|
| 1279 | - 'language' => $this->lang, |
|
| 1280 | - 'cachetime_options' => $this->cachetime_options, |
|
| 1281 | - 'ctype_options' => $this->ctype_options, |
|
| 1282 | - 'block' => $block4assign, |
|
| 1283 | - 'op' => $next_op, |
|
| 1284 | - 'form_title' => $form_title, |
|
| 1285 | - 'submit_button' => $button_value, |
|
| 1286 | - 'common_fck_installed' => $this->checkFck(), |
|
| 1287 | - 'gticket_hidden' => $GLOBALS['xoopsSecurity']->getTokenHTML('myblocksadmin'), |
|
| 1288 | - ]); |
|
| 1277 | + 'target_dirname' => $this->target_dirname, |
|
| 1278 | + 'target_mname' => $this->target_mname, |
|
| 1279 | + 'language' => $this->lang, |
|
| 1280 | + 'cachetime_options' => $this->cachetime_options, |
|
| 1281 | + 'ctype_options' => $this->ctype_options, |
|
| 1282 | + 'block' => $block4assign, |
|
| 1283 | + 'op' => $next_op, |
|
| 1284 | + 'form_title' => $form_title, |
|
| 1285 | + 'submit_button' => $button_value, |
|
| 1286 | + 'common_fck_installed' => $this->checkFck(), |
|
| 1287 | + 'gticket_hidden' => $GLOBALS['xoopsSecurity']->getTokenHTML('myblocksadmin'), |
|
| 1288 | + ]); |
|
| 1289 | 1289 | |
| 1290 | 1290 | if (defined('XOOPS_CUBE_LEGACY')) { |
| 1291 | 1291 | $tpl->display('db:altsys_main_myblocksadmin_edit_4legacy.html'); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | // private |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @param $target_side |
|
| 127 | + * @param integer $target_side |
|
| 128 | 128 | * @param $block_data |
| 129 | 129 | * @return string |
| 130 | 130 | */ |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | 158 | * @param $block_data |
| 159 | - * @param array $skip_sides |
|
| 159 | + * @param integer[] $skip_sides |
|
| 160 | 160 | * @return string |
| 161 | 161 | */ |
| 162 | 162 | |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | // private |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param $target_side |
|
| 90 | + * @param integer $target_side |
|
| 91 | 91 | * @param $block_data |
| 92 | 92 | * @return string |
| 93 | 93 | */ |
@@ -63,8 +63,8 @@ |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @param $dirname |
|
| 67 | - * @param $fileBodyName |
|
| 66 | + * @param string $dirname |
|
| 67 | + * @param string $fileBodyName |
|
| 68 | 68 | */ |
| 69 | 69 | |
| 70 | 70 | public function _loadLanguage($dirname, $fileBodyName) |
@@ -130,8 +130,8 @@ |
||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | - * @param $mid |
|
| 134 | - * @param $coretype |
|
| 133 | + * @param integer $mid |
|
| 134 | + * @param integer|null $coretype |
|
| 135 | 135 | * @return string |
| 136 | 136 | */ |
| 137 | 137 | function altsys_get_link2modpreferences($mid, $coretype) |