@@ -44,9 +44,9 @@ discard block |
||
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @public function constructor class |
|
| 48 | - * @param null |
|
| 49 | - */ |
|
| 47 | + * @public function constructor class |
|
| 48 | + * @param null |
|
| 49 | + */ |
|
| 50 | 50 | |
| 51 | 51 | public function __construct() |
| 52 | 52 | { |
@@ -109,8 +109,8 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * @static function getInstance |
|
| 113 | - * @param null |
|
| 112 | + * @static function getInstance |
|
| 113 | + * @param null |
|
| 114 | 114 | * @return TDMCreateModules |
| 115 | 115 | */ |
| 116 | 116 | public static function getInstance() |
@@ -124,8 +124,8 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @public function getFormModules |
|
| 128 | - * @param mixed $action |
|
| 127 | + * @public function getFormModules |
|
| 128 | + * @param mixed $action |
|
| 129 | 129 | * |
| 130 | 130 | * @return XoopsThemeForm |
| 131 | 131 | */ |
@@ -356,9 +356,9 @@ discard block |
||
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | /** |
| 359 | - * @private static function createLogo |
|
| 360 | - * @param mixed $logoIcon |
|
| 361 | - * @param string $moduleDirname |
|
| 359 | + * @private static function createLogo |
|
| 360 | + * @param mixed $logoIcon |
|
| 361 | + * @param string $moduleDirname |
|
| 362 | 362 | * |
| 363 | 363 | * @return bool|string |
| 364 | 364 | */ |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | $imageIcon = imagecreatefrompng($iconFile); |
| 385 | 385 | // Write text |
| 386 | 386 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 387 | - $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 387 | + $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 388 | 388 | imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), []); |
| 389 | 389 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
| 390 | 390 | $logoImg = '/'.$moduleDirname.'_logo.png'; |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | { |
| 435 | 435 | $retModules = []; |
| 436 | 436 | foreach ($this->options as $option) { |
| 437 | - if (1 == $this->getVar('mod_' . $option)) { |
|
| 437 | + if (1 == $this->getVar('mod_'.$option)) { |
|
| 438 | 438 | array_push($retModules, $option); |
| 439 | 439 | } |
| 440 | 440 | } |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * @param mixed $logoIcon |
| 361 | 361 | * @param string $moduleDirname |
| 362 | 362 | * |
| 363 | - * @return bool|string |
|
| 363 | + * @return false|string |
|
| 364 | 364 | */ |
| 365 | 365 | private static function createLogo($logoIcon, $moduleDirname) |
| 366 | 366 | { |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | /** |
| 446 | 446 | * Get Defined Language. |
| 447 | 447 | * |
| 448 | - * @param $lang |
|
| 448 | + * @param string $lang |
|
| 449 | 449 | * |
| 450 | 450 | * @return string |
| 451 | 451 | */ |
@@ -551,10 +551,10 @@ discard block |
||
| 551 | 551 | * Get Modules Criteria. |
| 552 | 552 | * |
| 553 | 553 | * @param $crModules |
| 554 | - * @param $start |
|
| 555 | - * @param $limit |
|
| 556 | - * @param $sort |
|
| 557 | - * @param $order |
|
| 554 | + * @param integer $start |
|
| 555 | + * @param integer $limit |
|
| 556 | + * @param string $sort |
|
| 557 | + * @param string $order |
|
| 558 | 558 | * |
| 559 | 559 | * @return mixed |
| 560 | 560 | */ |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class DocsChangelog extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return DocsChangelog |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @public function render |
|
| 68 | - * @param null |
|
| 67 | + * @public function render |
|
| 68 | + * @param null |
|
| 69 | 69 | * @return bool|string |
| 70 | 70 | */ |
| 71 | 71 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class TemplatesAdminAbout extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @public function render |
|
| 67 | - * @param null |
|
| 66 | + * @public function render |
|
| 67 | + * @param null |
|
| 68 | 68 | * @return bool|string |
| 69 | 69 | */ |
| 70 | 70 | public function render() |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'header', true, true).PHP_EOL; |
| 78 | 78 | $content .= $hc->getHtmlComment('About Page').PHP_EOL; |
| 79 | 79 | $single = $hc->getSmartySingleVar('about'); |
| 80 | - $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single) . PHP_EOL; |
|
| 80 | + $content .= $hc->getHtmlTag('div', ['class' => 'top'], $single).PHP_EOL; |
|
| 81 | 81 | $content .= $hc->getHtmlComment('Footer').PHP_EOL; |
| 82 | 82 | $content .= $hc->getSmartyIncludeFile($moduleDirname, 'footer', true, true); |
| 83 | 83 | |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $this->makeDirAndCopyFile('blocks', $indexFile, 'index.html'); |
| 96 | 96 | } |
| 97 | 97 | $language = ('english' !== $GLOBALS['xoopsConfig']['language']) ? $GLOBALS['xoopsConfig']['language'] : 'english'; |
| 98 | - $copyFiles = ['class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 'assets/css/admin' => $indexFile, 'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/' . $language => $indexFile, 'language/' . $language . '/help' => $indexFile, 'preloads' => $indexFile]; |
|
| 98 | + $copyFiles = ['class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 'assets/css/admin' => $indexFile, 'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile]; |
|
| 99 | 99 | foreach ($copyFiles as $k => $v) { |
| 100 | 100 | // Creation of folders and index.html file |
| 101 | 101 | $this->makeDirAndCopyFile($k, $v, 'index.html'); |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class CssStyles extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return CssStyles |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @public function render |
|
| 68 | - * @param null |
|
| 67 | + * @public function render |
|
| 68 | + * @param null |
|
| 69 | 69 | * @return bool|string |
| 70 | 70 | */ |
| 71 | 71 | public function render() |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | class CssAdminStyles extends TDMCreateFile |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @public function constructor |
|
| 32 | - * @param null |
|
| 33 | - */ |
|
| 31 | + * @public function constructor |
|
| 32 | + * @param null |
|
| 33 | + */ |
|
| 34 | 34 | |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
@@ -38,8 +38,8 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * @static function getInstance |
|
| 42 | - * @param null |
|
| 41 | + * @static function getInstance |
|
| 42 | + * @param null |
|
| 43 | 43 | * @return CssAdminStyles |
| 44 | 44 | */ |
| 45 | 45 | public static function getInstance() |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @public function render |
|
| 68 | - * @param null |
|
| 67 | + * @public function render |
|
| 68 | + * @param null |
|
| 69 | 69 | * @return bool|string |
| 70 | 70 | */ |
| 71 | 71 | public function render() |
@@ -71,8 +71,8 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '') |
| 73 | 73 | { |
| 74 | - $params = ('' != $param2) ? ', ' . $param2 : ''; |
|
| 75 | - $params .= ('' != $param3) ? ', ' . $param3 : ''; |
|
| 74 | + $params = ('' != $param2) ? ', '.$param2 : ''; |
|
| 75 | + $params .= ('' != $param3) ? ', '.$param3 : ''; |
|
| 76 | 76 | |
| 77 | 77 | if (false === $isParam) { |
| 78 | 78 | $ret = "{$t}\${$var} = new Criteria( {$param1}{$params} );\n"; |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $tplids[] = $tplid; |
| 63 | 63 | } |
| 64 | 64 | if (count($tplids) > 0) { |
| 65 | - $tplfileHandler = xoops_getHandler('tplfile'); |
|
| 65 | + $tplfileHandler = xoops_getHandler('tplfile'); |
|
| 66 | 66 | $duplicate_files = $tplfileHandler->getObjects( |
| 67 | 67 | new Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN') |
| 68 | 68 | ); |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * @public function write |
| 58 | - * @param $module |
|
| 58 | + * @param string $module |
|
| 59 | 59 | * @param $table |
| 60 | - * @param $filename |
|
| 60 | + * @param string $filename |
|
| 61 | 61 | */ |
| 62 | 62 | public function write($module, $table, $filename) |
| 63 | 63 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * @private function getAdminPagesList |
| 106 | 106 | * @param $moduleDirname |
| 107 | 107 | * @param $table |
| 108 | - * @param $language |
|
| 108 | + * @param string $language |
|
| 109 | 109 | * @param $fields |
| 110 | 110 | * @param $fieldId |
| 111 | 111 | * @param $fieldInForm |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * @param $moduleDirname |
| 163 | 163 | * @param $tableName |
| 164 | 164 | * @param $fieldInForm |
| 165 | - * @param $language |
|
| 165 | + * @param string $language |
|
| 166 | 166 | * @param string $t |
| 167 | 167 | * @return string |
| 168 | 168 | */ |
@@ -193,8 +193,8 @@ discard block |
||
| 193 | 193 | * @private function getPermissionsSave |
| 194 | 194 | * @param $moduleDirname |
| 195 | 195 | * @param $fieldId |
| 196 | - * @param $ccFieldId |
|
| 197 | - * @param $newFieldId |
|
| 196 | + * @param string $ccFieldId |
|
| 197 | + * @param string $newFieldId |
|
| 198 | 198 | * @param $perm |
| 199 | 199 | * |
| 200 | 200 | * @return string |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * @param $tableName |
| 219 | 219 | * @param $tableCategory |
| 220 | 220 | * @param $tableSoleName |
| 221 | - * @param $language |
|
| 221 | + * @param string $language |
|
| 222 | 222 | * @param $fields |
| 223 | 223 | * @param $fieldId |
| 224 | 224 | * @param $fieldMain |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * @private function getAdminPagesEdit |
| 310 | 310 | * @param $moduleDirname |
| 311 | 311 | * @param $table |
| 312 | - * @param $language |
|
| 312 | + * @param string $language |
|
| 313 | 313 | * @param $fieldId |
| 314 | 314 | * @param $fieldInForm |
| 315 | 315 | * @param string $t |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | /** |
| 351 | 351 | * @private function getAdminPagesDelete |
| 352 | 352 | * @param $tableName |
| 353 | - * @param $language |
|
| 353 | + * @param string $language |
|
| 354 | 354 | * @param $fieldId |
| 355 | 355 | * @param $fieldMain |
| 356 | 356 | * @param string $t |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * @public function render |
| 368 | 368 | * @param null |
| 369 | 369 | * |
| 370 | - * @return bool|string |
|
| 370 | + * @return null|string |
|
| 371 | 371 | */ |
| 372 | 372 | public function render() |
| 373 | 373 | { |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | $ret .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t); |
| 149 | 149 | $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t"); |
| 150 | - $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t"); |
|
| 151 | - $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t"); |
|
| 152 | - $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t"); |
|
| 153 | - $condIf .= $xc->getXcPageNav($tableName, $t . "\t"); |
|
| 154 | - $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t"); |
|
| 150 | + $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t"); |
|
| 151 | + $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t"); |
|
| 152 | + $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t"); |
|
| 153 | + $condIf .= $xc->getXcPageNav($tableName, $t."\t"); |
|
| 154 | + $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t"); |
|
| 155 | 155 | $ret .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t); |
| 156 | 156 | |
| 157 | 157 | return $ret; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $stuTableName = strtoupper($tableName); |
| 176 | 176 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 177 | 177 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 178 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 178 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 179 | 179 | |
| 180 | 180 | if (in_array(1, $fieldInForm)) { |
| 181 | 181 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $ret = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t"); |
| 208 | 208 | $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t"); |
| 209 | 209 | $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t"); |
| 210 | - $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 210 | + $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 211 | 211 | |
| 212 | 212 | return $ret; |
| 213 | 213 | } |
@@ -236,11 +236,11 @@ discard block |
||
| 236 | 236 | $xoopsSecurityCheck = $xc->getXcSecurityCheck('!'); |
| 237 | 237 | $securityError = $xc->getXcSecurityErrors(); |
| 238 | 238 | $implode = $pc->getPhpCodeImplode(',', $securityError); |
| 239 | - $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t"); |
|
| 240 | - $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 239 | + $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t"); |
|
| 240 | + $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 241 | 241 | |
| 242 | 242 | $isset = $pc->getPhpCodeIsset($ccFieldId); |
| 243 | - $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t"); |
|
| 243 | + $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t"); |
|
| 244 | 244 | $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t"); |
| 245 | 245 | $ret .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t); |
| 246 | 246 | $ret .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t"); |
@@ -282,20 +282,20 @@ discard block |
||
| 282 | 282 | } |
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | - $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 285 | + $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 286 | 286 | $insert = $xc->getXcInsert($tableName, $tableName, 'Obj'); |
| 287 | 287 | $contentInsert = ''; |
| 288 | 288 | if (1 == $tableCategory) { |
| 289 | 289 | $ucfTableName = ucfirst($tableName); |
| 290 | - $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t"); |
|
| 290 | + $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t"); |
|
| 291 | 291 | $ucfFieldId = $this->getCamelCase($fieldId, true); |
| 292 | - $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t"); |
|
| 293 | - $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t . "\t"); |
|
| 294 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId); |
|
| 295 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit'); |
|
| 296 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve'); |
|
| 292 | + $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t"); |
|
| 293 | + $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t."\t"); |
|
| 294 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId); |
|
| 295 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit'); |
|
| 296 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve'); |
|
| 297 | 297 | } |
| 298 | - $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t"); |
|
| 298 | + $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t"); |
|
| 299 | 299 | $ret .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t); |
| 300 | 300 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 301 | 301 | $ret .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | |
| 333 | 333 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 334 | 334 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 335 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 335 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 336 | 336 | |
| 337 | 337 | if (in_array(1, $fieldInForm)) { |
| 338 | 338 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t); |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t); |
| 341 | 341 | } |
| 342 | 342 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 343 | - $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t); |
|
| 343 | + $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t); |
|
| 344 | 344 | $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t); |
| 345 | 345 | $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t); |
| 346 | 346 | |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | } |
| 405 | 405 | $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t"); |
| 406 | 406 | |
| 407 | - $cases = [ |
|
| 407 | + $cases = [ |
|
| 408 | 408 | 'list' => [$list], |
| 409 | 409 | 'new' => [$new], |
| 410 | 410 | 'save' => [$save], |