@@ -50,6 +50,10 @@ discard block |
||
| 50 | 50 | * @param $var |
| 51 | 51 | * @return string |
| 52 | 52 | */ |
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * @param string $comment |
|
| 56 | + */ |
|
| 53 | 57 | public function getPhpCodeCommentLine($comment = null, $var = null, $t = '') |
| 54 | 58 | { |
| 55 | 59 | $value = !empty($var) ? ' '.$var : ''; |
@@ -129,6 +133,10 @@ discard block |
||
| 129 | 133 | * |
| 130 | 134 | * @return string |
| 131 | 135 | */ |
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @param string $var |
|
| 139 | + */ |
|
| 132 | 140 | public function getPhpCodeGlobalsVariables($var = null, $type = 'REQUEST') |
| 133 | 141 | { |
| 134 | 142 | $type = strtoupper($type); |
@@ -190,6 +198,11 @@ discard block |
||
| 190 | 198 | * |
| 191 | 199 | * @return string |
| 192 | 200 | */ |
| 201 | + |
|
| 202 | + /** |
|
| 203 | + * @param string $directory |
|
| 204 | + * @param string $filename |
|
| 205 | + */ |
|
| 193 | 206 | public function getPhpCodeIncludeDir($directory = null, $filename = null, $once = false, $isPath = false, $type = 'include', $t = '') |
| 194 | 207 | { |
| 195 | 208 | if ($type === '') { |
@@ -222,6 +235,10 @@ discard block |
||
| 222 | 235 | * |
| 223 | 236 | * @return string |
| 224 | 237 | */ |
| 238 | + |
|
| 239 | + /** |
|
| 240 | + * @param string $two |
|
| 241 | + */ |
|
| 225 | 242 | public function getPhpCodeTernaryOperator($return, $condition, $one, $two, $t = '') |
| 226 | 243 | { |
| 227 | 244 | return "{$t}\${$return} = {$condition} ? {$one} : {$two};\n"; |
@@ -381,8 +398,8 @@ discard block |
||
| 381 | 398 | /** |
| 382 | 399 | * @public function getPhpCodeSwitch |
| 383 | 400 | * |
| 384 | - * @param $op |
|
| 385 | - * @param $content |
|
| 401 | + * @param string $op |
|
| 402 | + * @param string $content |
|
| 386 | 403 | * @param $t |
| 387 | 404 | * |
| 388 | 405 | * @return string |
@@ -471,6 +488,11 @@ discard block |
||
| 471 | 488 | * @param $right |
| 472 | 489 | * @return string |
| 473 | 490 | */ |
| 491 | + |
|
| 492 | + /** |
|
| 493 | + * @param string $left |
|
| 494 | + * @param string $right |
|
| 495 | + */ |
|
| 474 | 496 | public function getPhpCodeImplode($left, $right) |
| 475 | 497 | { |
| 476 | 498 | return "implode('{$left}', {$right})"; |
@@ -582,6 +604,11 @@ discard block |
||
| 582 | 604 | * @param $right |
| 583 | 605 | * @return string |
| 584 | 606 | */ |
| 607 | + |
|
| 608 | + /** |
|
| 609 | + * @param string $left |
|
| 610 | + * @param string $right |
|
| 611 | + */ |
|
| 585 | 612 | public function getPhpCodeSprintf($left, $right) |
| 586 | 613 | { |
| 587 | 614 | return "sprintf({$left}, {$right})"; |
@@ -671,6 +698,10 @@ discard block |
||
| 671 | 698 | * |
| 672 | 699 | * @return string |
| 673 | 700 | */ |
| 701 | + |
|
| 702 | + /** |
|
| 703 | + * @param string $value |
|
| 704 | + */ |
|
| 674 | 705 | public function getPhpCodeStripTags($left = null, $value, $isParam = false, $t = '') |
| 675 | 706 | { |
| 676 | 707 | if (!$isParam) { |
@@ -72,6 +72,11 @@ discard block |
||
| 72 | 72 | * |
| 73 | 73 | * @return string |
| 74 | 74 | */ |
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @param string $value |
|
| 78 | + * @param boolean $interlock |
|
| 79 | + */ |
|
| 75 | 80 | public function getXcEqualsOperator($var, $value, $interlock = null, $ref = false, $t = '') |
| 76 | 81 | { |
| 77 | 82 | if (false === $ref) { |
@@ -136,6 +141,12 @@ discard block |
||
| 136 | 141 | * |
| 137 | 142 | * @return string |
| 138 | 143 | */ |
| 144 | + |
|
| 145 | + /** |
|
| 146 | + * @param string $anchor |
|
| 147 | + * @param string $name |
|
| 148 | + * @param string $vars |
|
| 149 | + */ |
|
| 139 | 150 | public function getXcAnchorFunction($anchor, $name, $vars, $close = false) |
| 140 | 151 | { |
| 141 | 152 | $semicolon = $close !== false ? ';' : ''; |
@@ -311,6 +322,10 @@ discard block |
||
| 311 | 322 | * @param $name |
| 312 | 323 | * @return string |
| 313 | 324 | */ |
| 325 | + |
|
| 326 | + /** |
|
| 327 | + * @param string $name |
|
| 328 | + */ |
|
| 314 | 329 | public function getXcGetConfig($moduleDirname, $name) |
| 315 | 330 | { |
| 316 | 331 | return "\${$moduleDirname}->getConfig('{$name}')"; |
@@ -729,8 +744,8 @@ discard block |
||
| 729 | 744 | /** |
| 730 | 745 | * @public function getXcTplAssign |
| 731 | 746 | * |
| 732 | - * @param $tplString |
|
| 733 | - * @param $phpRender |
|
| 747 | + * @param string $tplString |
|
| 748 | + * @param string $phpRender |
|
| 734 | 749 | * @param $leftIsString |
| 735 | 750 | * |
| 736 | 751 | * @return string |
@@ -1063,6 +1078,10 @@ discard block |
||
| 1063 | 1078 | * |
| 1064 | 1079 | * @return string |
| 1065 | 1080 | */ |
| 1081 | + |
|
| 1082 | + /** |
|
| 1083 | + * @param string $directory |
|
| 1084 | + */ |
|
| 1066 | 1085 | public function getXcRedirectHeader($directory, $options = '', $numb = '2', $var, $isString = true, $t = '') |
| 1067 | 1086 | { |
| 1068 | 1087 | $ret = ''; |
@@ -1171,7 +1190,7 @@ discard block |
||
| 1171 | 1190 | * @public function getXcGet |
| 1172 | 1191 | * |
| 1173 | 1192 | * @param $left |
| 1174 | - * @param $var |
|
| 1193 | + * @param string $var |
|
| 1175 | 1194 | * @param $obj |
| 1176 | 1195 | * @param $handler |
| 1177 | 1196 | * @param $isParam |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * @param $module |
| 80 | 80 | * @param $table |
| 81 | - * @param $filename |
|
| 81 | + * @param string $filename |
|
| 82 | 82 | */ |
| 83 | 83 | public function write($module, $table, $filename) |
| 84 | 84 | { |
@@ -128,6 +128,10 @@ discard block |
||
| 128 | 128 | * |
| 129 | 129 | * @return string |
| 130 | 130 | */ |
| 131 | + |
|
| 132 | + /** |
|
| 133 | + * @param string $language |
|
| 134 | + */ |
|
| 131 | 135 | public function getUserSingleBody($moduleDirname, $tableName, $language) |
| 132 | 136 | { |
| 133 | 137 | $ret = <<<EOT |
@@ -143,7 +147,7 @@ discard block |
||
| 143 | 147 | * |
| 144 | 148 | * @param $moduleDirname |
| 145 | 149 | * @param $tableName |
| 146 | - * @param $language |
|
| 150 | + * @param string $language |
|
| 147 | 151 | * |
| 148 | 152 | * @return string |
| 149 | 153 | */ |
@@ -171,7 +175,7 @@ discard block |
||
| 171 | 175 | * @param null |
| 172 | 176 | */ |
| 173 | 177 | /** |
| 174 | - * @return bool|string |
|
| 178 | + * @return null|string |
|
| 175 | 179 | */ |
| 176 | 180 | public function render() |
| 177 | 181 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | $descriptions = array('name' => "{$language}NAME", 'version' => "{$module->getVar('mod_version')}", 'description' => "{$language}DESC", |
| 148 | 148 | 'author' => "'{$module->getVar('mod_author')}'", 'author_mail' => "'{$module->getVar('mod_author_mail')}'", 'author_website_url' => "'{$module->getVar('mod_author_website_url')}'", |
| 149 | - 'author_website_name' => "'{$module->getVar('mod_author_website_name')}'",'credits' => "'{$module->getVar('mod_credits')}'",'license' => "'{$module->getVar('mod_license')}'", |
|
| 149 | + 'author_website_name' => "'{$module->getVar('mod_author_website_name')}'", 'credits' => "'{$module->getVar('mod_credits')}'", 'license' => "'{$module->getVar('mod_license')}'", |
|
| 150 | 150 | 'license_url' => "'www.gnu.org/licenses/gpl-2.0.html/'", 'help' => "'page=help'", 'release_info' => "'{$module->getVar('mod_release_info')}'", |
| 151 | 151 | 'release_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_release_file')}'", 'release_date' => "'{$date}'", |
| 152 | 152 | 'manual' => "'{$module->getVar('mod_manual')}'", 'manual_file' => "XOOPS_URL . '/modules/{$module->getVar('mod_dirname')}/docs/{$module->getVar('mod_manual_file')}'", |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | 'demo_site_url' => "'{$module->getVar('mod_demo_site_url')}'", 'demo_site_name' => "'{$module->getVar('mod_demo_site_name')}'", 'support_url' => "'{$module->getVar('mod_support_url')}'", |
| 158 | 158 | 'support_name' => "'{$module->getVar('mod_support_name')}'", 'module_website_url' => "'{$module->getVar('mod_website_url')}'", 'module_website_name' => "'{$module->getVar('mod_website_name')}'", 'release' => "'{$module->getVar('mod_release')}'", 'module_status' => "'{$module->getVar('mod_status')}'", |
| 159 | 159 | 'system_menu' => '1', 'hasAdmin' => $ha, 'hasMain' => $hm, 'adminindex' => "'admin/index.php'", 'adminmenu' => "'admin/menu.php'", |
| 160 | - 'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'", ); |
|
| 160 | + 'onInstall' => "'include/install.php'", 'onUpdate' => "'include/update.php'",); |
|
| 161 | 161 | |
| 162 | 162 | $ret .= $this->uc->getUserModVersion(1, $descriptions); |
| 163 | 163 | |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | $ret = $this->phpcode->getPhpCodeCommentLine("{$ucfTableName}"); |
| 451 | 451 | $blocks = array('file' => "'{$tableName}.php'", 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", 'description' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}_DESC", |
| 452 | 452 | 'show_func' => "'b_{$moduleDirname}_{$tableName}_show'", 'edit_func' => "'b_{$moduleDirname}_{$tableName}_edit'", |
| 453 | - 'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'", ); |
|
| 453 | + 'template' => "'{$moduleDirname}_block_{$tableName}.tpl'", 'options' => "'{$type}|5|25|0'",); |
|
| 454 | 454 | $ret .= $this->uc->getUserModVersion(3, $blocks, 'blocks', '$b'); |
| 455 | 455 | $ret .= $this->getSimpleString('++$b;'); |
| 456 | 456 | |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | $ret .= $this->xc->getXcLoad('xoopseditorhandler'); |
| 486 | 486 | $ret .= $this->xc->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()'); |
| 487 | 487 | $editor = array('name' => "'{$moduleDirname}_editor_{$rpFieldName}'", 'title' => "'{$language}EDITOR_{$stuFieldName}'", 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'", |
| 488 | - 'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())', ); |
|
| 488 | + 'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'dhtml'", 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())',); |
|
| 489 | 489 | $ret .= $this->uc->getUserModVersion(3, $editor, 'config', '$c'); |
| 490 | 490 | $ret .= $this->getSimpleString('++$c;'); |
| 491 | 491 | } |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | $group = $this->xc->getXcEqualsOperator('$groups[$group] ', '$key'); |
| 499 | 499 | $ret .= $this->phpcode->getPhpCodeForeach('xoopsGroups', false, 'key', 'group', $group); |
| 500 | 500 | $groups = array('name' => "'groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'", |
| 501 | - 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups', ); |
|
| 501 | + 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$groups', 'options' => '$groups',); |
|
| 502 | 502 | $ret .= $this->uc->getUserModVersion(3, $groups, 'config', '$c'); |
| 503 | 503 | $ret .= $this->getSimpleString('++$c;'); |
| 504 | 504 | $ret .= $this->phpcode->getPhpCodeCommentLine('Get Admin groups'); |
@@ -509,14 +509,14 @@ discard block |
||
| 509 | 509 | $adminGroup = $this->xc->getXcEqualsOperator('$adminGroups[$adminGroup] ', '$key'); |
| 510 | 510 | $ret .= $this->phpcode->getPhpCodeForeach('adminXoopsGroups', false, 'key', 'adminGroup', $adminGroup); |
| 511 | 511 | $adminGroups = array('name' => "'admin_groups'", 'title' => "'{$language}GROUPS'", 'description' => "'{$language}GROUPS_DESC'", |
| 512 | - 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups', ); |
|
| 512 | + 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => '$adminGroups', 'options' => '$adminGroups',); |
|
| 513 | 513 | $ret .= $this->uc->getUserModVersion(3, $adminGroups, 'config', '$c'); |
| 514 | 514 | $ret .= $this->getSimpleString('++$c;'); |
| 515 | 515 | } |
| 516 | 516 | $keyword = implode(', ', $this->getKeywords()); |
| 517 | 517 | $ret .= $this->phpcode->getPhpCodeCommentLine('Keywords'); |
| 518 | 518 | $arrayKeyword = array('name' => "'keywords'", 'title' => "'{$language}KEYWORDS'", 'description' => "'{$language}KEYWORDS_DESC'", |
| 519 | - 'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'", ); |
|
| 519 | + 'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$moduleDirname}, {$keyword}'",); |
|
| 520 | 520 | $ret .= $this->uc->getUserModVersion(3, $arrayKeyword, 'config', '$c'); |
| 521 | 521 | $ret .= $this->getSimpleString('++$c;'); |
| 522 | 522 | unset($this->keywords); |
@@ -527,80 +527,80 @@ discard block |
||
| 527 | 527 | if (in_array(10, $fieldElement) || in_array(11, $fieldElement) || in_array(12, $fieldElement) || in_array(13, $fieldElement) || in_array(14, $fieldElement)) { |
| 528 | 528 | $ret .= $this->phpcode->getPhpCodeCommentLine('Uploads : maxsize of image'); |
| 529 | 529 | $maxsize = array('name' => "'maxsize'", 'title' => "'{$language}MAXSIZE'", 'description' => "'{$language}MAXSIZE_DESC'", |
| 530 | - 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000', ); |
|
| 530 | + 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '5000000',); |
|
| 531 | 531 | $ret .= $this->uc->getUserModVersion(3, $maxsize, 'config', '$c'); |
| 532 | 532 | $ret .= $this->phpcode->getPhpCodeCommentLine('Uploads : mimetypes of image'); |
| 533 | 533 | $ret .= $this->getSimpleString('++$c;'); |
| 534 | 534 | $mimetypes = array('name' => "'mimetypes'", 'title' => "'{$language}MIMETYPES'", 'description' => "'{$language}MIMETYPES_DESC'", |
| 535 | 535 | 'formtype' => "'select_multi'", 'valuetype' => "'array'", 'default' => "array('image/gif', 'image/jpeg', 'image/png')", |
| 536 | - 'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')", ); |
|
| 536 | + 'options' => "array('bmp' => 'image/bmp','gif' => 'image/gif','pjpeg' => 'image/pjpeg', 'jpeg' => 'image/jpeg','jpg' => 'image/jpg','jpe' => 'image/jpe', 'png' => 'image/png')",); |
|
| 537 | 537 | $ret .= $this->uc->getUserModVersion(3, $mimetypes, 'config', '$c'); |
| 538 | 538 | $ret .= $this->getSimpleString('++$c;'); |
| 539 | 539 | } |
| 540 | 540 | if (1 == $table->getVar('table_admin')) { |
| 541 | 541 | $ret .= $this->phpcode->getPhpCodeCommentLine('Admin pager'); |
| 542 | 542 | $adminPager = array('name' => "'adminpager'", 'title' => "'{$language}ADMIN_PAGER'", 'description' => "'{$language}ADMIN_PAGER_DESC'", |
| 543 | - 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', ); |
|
| 543 | + 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',); |
|
| 544 | 544 | $ret .= $this->uc->getUserModVersion(3, $adminPager, 'config', '$c'); |
| 545 | 545 | $ret .= $this->getSimpleString('++$c;'); |
| 546 | 546 | } |
| 547 | 547 | if (1 == $table->getVar('table_user')) { |
| 548 | 548 | $ret .= $this->phpcode->getPhpCodeCommentLine('User pager'); |
| 549 | 549 | $userPager = array('name' => "'userpager'", 'title' => "'{$language}USER_PAGER'", 'description' => "'{$language}USER_PAGER_DESC'", |
| 550 | - 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10', ); |
|
| 550 | + 'formtype' => "'textbox'", 'valuetype' => "'int'", 'default' => '10',); |
|
| 551 | 551 | $ret .= $this->uc->getUserModVersion(3, $userPager, 'config', '$c'); |
| 552 | 552 | $ret .= $this->getSimpleString('++$c;'); |
| 553 | 553 | } |
| 554 | 554 | if (1 == $table->getVar('table_tag')) { |
| 555 | 555 | $ret .= $this->phpcode->getPhpCodeCommentLine('Use tag'); |
| 556 | 556 | $useTag = array('name' => "'usetag'", 'title' => "'{$language}USE_TAG'", 'description' => "'{$language}USE_TAG_DESC'", |
| 557 | - 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', ); |
|
| 557 | + 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',); |
|
| 558 | 558 | $ret .= $this->uc->getUserModVersion(3, $useTag, 'config', '$c'); |
| 559 | 559 | $ret .= $this->getSimpleString('++$c;'); |
| 560 | 560 | } |
| 561 | 561 | $ret .= $this->phpcode->getPhpCodeCommentLine('Number column'); |
| 562 | 562 | $numbCol = array('name' => "'numb_col'", 'title' => "'{$language}NUMB_COL'", 'description' => "'{$language}NUMB_COL_DESC'", |
| 563 | - 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", ); |
|
| 563 | + 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",); |
|
| 564 | 564 | $ret .= $this->uc->getUserModVersion(3, $numbCol, 'config', '$c'); |
| 565 | 565 | $ret .= $this->getSimpleString('++$c;'); |
| 566 | 566 | $ret .= $this->phpcode->getPhpCodeCommentLine('Divide by'); |
| 567 | 567 | $divideby = array('name' => "'divideby'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'", |
| 568 | - 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')", ); |
|
| 568 | + 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => '1', 'options' => "array(1 => '1', 2 => '2', 3 => '3', 4 => '4')",); |
|
| 569 | 569 | $ret .= $this->uc->getUserModVersion(3, $divideby, 'config', '$c'); |
| 570 | 570 | $ret .= $this->getSimpleString('++$c;'); |
| 571 | 571 | $ret .= $this->phpcode->getPhpCodeCommentLine('Table type'); |
| 572 | 572 | $tableType = array('name' => "'table_type'", 'title' => "'{$language}DIVIDEBY'", 'description' => "'{$language}DIVIDEBY_DESC'", |
| 573 | - 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')", ); |
|
| 573 | + 'formtype' => "'select'", 'valuetype' => "'int'", 'default' => "'bordered'", 'options' => "array('bordered' => 'bordered', 'striped' => 'striped', 'hover' => 'hover', 'condensed' => 'condensed')",); |
|
| 574 | 574 | $ret .= $this->uc->getUserModVersion(3, $tableType, 'config', '$c'); |
| 575 | 575 | $ret .= $this->getSimpleString('++$c;'); |
| 576 | 576 | $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by'); |
| 577 | 577 | $panelType = array('name' => "'panel_type'", 'title' => "'{$language}PANEL_TYPE'", 'description' => "'{$language}PANEL_TYPE_DESC'", |
| 578 | - 'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')", ); |
|
| 578 | + 'formtype' => "'select'", 'valuetype' => "'text'", 'default' => "'default'", 'options' => "array('default' => 'default', 'primary' => 'primary', 'success' => 'success', 'info' => 'info', 'warning' => 'warning', 'danger' => 'danger')",); |
|
| 579 | 579 | $ret .= $this->uc->getUserModVersion(3, $panelType, 'config', '$c'); |
| 580 | 580 | $ret .= $this->getSimpleString('++$c;'); |
| 581 | 581 | $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by'); |
| 582 | 582 | $advertise = array('name' => "'advertise'", 'title' => "'{$language}ADVERTISE'", 'description' => "'{$language}ADVERTISE_DESC'", |
| 583 | - 'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''", ); |
|
| 583 | + 'formtype' => "'textarea'", 'valuetype' => "'text'", 'default' => "''",); |
|
| 584 | 584 | $ret .= $this->uc->getUserModVersion(3, $advertise, 'config', '$c'); |
| 585 | 585 | $ret .= $this->getSimpleString('++$c;'); |
| 586 | 586 | $ret .= $this->phpcode->getPhpCodeCommentLine('Panel by'); |
| 587 | 587 | $bookmarks = array('name' => "'bookmarks'", 'title' => "'{$language}BOOKMARKS'", 'description' => "'{$language}BOOKMARKS_DESC'", |
| 588 | - 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', ); |
|
| 588 | + 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',); |
|
| 589 | 589 | $ret .= $this->uc->getUserModVersion(3, $bookmarks, 'config', '$c'); |
| 590 | 590 | $ret .= $this->getSimpleString('++$c;'); |
| 591 | 591 | $ret .= $this->phpcode->getPhpCodeCommentLine('Facebook Comments'); |
| 592 | 592 | $facebookComments = array('name' => "'facebook_comments'", 'title' => "'{$language}FACEBOOK_COMMENTS'", 'description' => "'{$language}FACEBOOK_COMMENTS_DESC'", |
| 593 | - 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', ); |
|
| 593 | + 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',); |
|
| 594 | 594 | $ret .= $this->uc->getUserModVersion(3, $facebookComments, 'config', '$c'); |
| 595 | 595 | $ret .= $this->getSimpleString('++$c;'); |
| 596 | 596 | $ret .= $this->phpcode->getPhpCodeCommentLine('Disqus Comments'); |
| 597 | 597 | $disqusComments = array('name' => "'disqus_comments'", 'title' => "'{$language}DISQUS_COMMENTS'", 'description' => "'{$language}DISQUS_COMMENTS_DESC'", |
| 598 | - 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0', ); |
|
| 598 | + 'formtype' => "'yesno'", 'valuetype' => "'int'", 'default' => '0',); |
|
| 599 | 599 | $ret .= $this->uc->getUserModVersion(3, $disqusComments, 'config', '$c'); |
| 600 | 600 | $ret .= $this->getSimpleString('++$c;'); |
| 601 | 601 | $ret .= $this->phpcode->getPhpCodeCommentLine('Maintained by'); |
| 602 | 602 | $maintainedby = array('name' => "'maintainedby'", 'title' => "'{$language}MAINTAINEDBY'", 'description' => "'{$language}MAINTAINEDBY_DESC'", |
| 603 | - 'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'", ); |
|
| 603 | + 'formtype' => "'textbox'", 'valuetype' => "'text'", 'default' => "'{$module->getVar('mod_support_url')}'",); |
|
| 604 | 604 | $ret .= $this->uc->getUserModVersion(3, $maintainedby, 'config', '$c'); |
| 605 | 605 | $ret .= $this->getSimpleString('unset($c);'); |
| 606 | 606 | |
@@ -636,14 +636,14 @@ discard block |
||
| 636 | 636 | case 'category': |
| 637 | 637 | $ret .= $this->phpcode->getPhpCodeCommentLine('Category Notify'); |
| 638 | 638 | $category = array('name' => "'category'", 'title' => "'{$language}{$stuTableName}_NOTIFY'", 'description' => "'{$language}{$stuTableName}_NOTIFY_DESC'", |
| 639 | - 'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1', ); |
|
| 639 | + 'subscribe_from' => "array('index.php',{$notifyFile})", 'item_name' => "'{$item}'", "'allow_bookmark'" => '1',); |
|
| 640 | 640 | $ret .= $this->uc->getUserModVersion(3, $category, 'notification', "'{$type}'"); |
| 641 | 641 | break; |
| 642 | 642 | case 'event': |
| 643 | 643 | $ret .= $this->phpcode->getPhpCodeCommentLine('Event Notify'); |
| 644 | 644 | $event = array('name' => "'{$typeOfNotify}'", 'category' => "'{$tableName}'", 'admin_only' => '1', "'title'" => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY'", |
| 645 | 645 | 'caption' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_CAPTION'", 'description' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_DESC'", |
| 646 | - 'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", ); |
|
| 646 | + 'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'",); |
|
| 647 | 647 | $ret .= $this->uc->getUserModVersion(3, $event, 'notification', "'{$type}'"); |
| 648 | 648 | break; |
| 649 | 649 | } |
@@ -762,7 +762,7 @@ discard block |
||
| 762 | 762 | $implodeFrom = implode(".php', '", $from); |
| 763 | 763 | $ret = $this->phpcode->getPhpCodeCommentLine('Global Notify'); |
| 764 | 764 | $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 765 | - 'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", ); |
|
| 765 | + 'subscribe_from' => "array('index.php', '{$implodeFrom}.php')",); |
|
| 766 | 766 | $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
| 767 | 767 | |
| 768 | 768 | return $ret; |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | $impFile = implode(".php', '", $file); |
| 787 | 787 | $ret = $this->phpcode->getPhpCodeCommentLine('Category Notify'); |
| 788 | 788 | $global = array('name' => "'{$name}'", 'title' => "{$language}{$title}_NOTIFY", 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 789 | - 'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
|
| 789 | + 'subscribe_from' => "array('{$impFile}.php')", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",); |
|
| 790 | 790 | $ret .= $this->uc->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
| 791 | 791 | |
| 792 | 792 | return $ret; |
@@ -812,7 +812,7 @@ discard block |
||
| 812 | 812 | $ucfTitle = ucfirst($title); |
| 813 | 813 | $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify'); |
| 814 | 814 | $table = array('name' => "'{$name}'", 'title' => "{$language}{$stuTitle}_NOTIFY", 'description' => "{$language}{$stuTitle}_NOTIFY_DESC", |
| 815 | - 'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}", ); |
|
| 815 | + 'subscribe_from' => "'{$file}.php'", 'item_name' => "'{$item}'", 'allow_bookmark' => "{$allow}",); |
|
| 816 | 816 | $ret .= $this->uc->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
| 817 | 817 | |
| 818 | 818 | return $ret; |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | $ret = $this->phpcode->getPhpCodeCommentLine($ucfTitle.' Notify'); |
| 841 | 841 | $event = array('name' => "'{$name}'", 'category' => "'{$category}'", 'admin_only' => "{$admin}", 'title' => "{$language}{$title}_{$table}_NOTIFY", |
| 842 | 842 | 'caption' => "{$language}{$title}_{$table}_NOTIFY_CAPTION", 'description' => "{$language}{$title}_{$table}_NOTIFY_DESC", |
| 843 | - 'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT", ); |
|
| 843 | + 'mail_template' => "'{$mail}'", 'mail_subject' => "{$language}{$title}_{$table}_NOTIFY_SUBJECT",); |
|
| 844 | 844 | $ret .= $this->uc->getUserModVersion(4, $event, 'notification', "'{$type}'", $num); |
| 845 | 845 | |
| 846 | 846 | return $ret; |