@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | $ret .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t); |
| 152 | 152 | $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t"); |
| 153 | - $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t"); |
|
| 154 | - $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t"); |
|
| 155 | - $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t"); |
|
| 156 | - $condIf .= $xc->getXcPageNav($tableName, $t . "\t"); |
|
| 157 | - $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t"); |
|
| 153 | + $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t"); |
|
| 154 | + $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t"); |
|
| 155 | + $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t"); |
|
| 156 | + $condIf .= $xc->getXcPageNav($tableName, $t."\t"); |
|
| 157 | + $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t"); |
|
| 158 | 158 | $ret .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t); |
| 159 | 159 | |
| 160 | 160 | return $ret; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $stuTableName = mb_strtoupper($tableName); |
| 179 | 179 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 180 | 180 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 181 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 181 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 182 | 182 | |
| 183 | 183 | if (in_array(1, $fieldInForm)) { |
| 184 | 184 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | $ret = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t"); |
| 211 | 211 | $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t"); |
| 212 | 212 | $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t"); |
| 213 | - $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 213 | + $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 214 | 214 | |
| 215 | 215 | return $ret; |
| 216 | 216 | } |
@@ -239,11 +239,11 @@ discard block |
||
| 239 | 239 | $xoopsSecurityCheck = $xc->getXcSecurityCheck('!'); |
| 240 | 240 | $securityError = $xc->getXcSecurityErrors(); |
| 241 | 241 | $implode = $pc->getPhpCodeImplode(',', $securityError); |
| 242 | - $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t"); |
|
| 243 | - $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 242 | + $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t"); |
|
| 243 | + $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 244 | 244 | |
| 245 | 245 | $isset = $pc->getPhpCodeIsset($ccFieldId); |
| 246 | - $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t"); |
|
| 246 | + $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t"); |
|
| 247 | 247 | $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t"); |
| 248 | 248 | $ret .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t); |
| 249 | 249 | $ret .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t"); |
@@ -290,21 +290,21 @@ discard block |
||
| 290 | 290 | } |
| 291 | 291 | } |
| 292 | 292 | } |
| 293 | - $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 293 | + $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 294 | 294 | $insert = $xc->getXcInsert($tableName, $tableName, 'Obj'); |
| 295 | 295 | $contentInsert = ''; |
| 296 | 296 | //if (1 == $tableCategory) { |
| 297 | 297 | if (1 == $tablePerms) { |
| 298 | 298 | $ucfTableName = ucfirst($tableName); |
| 299 | - $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t"); |
|
| 299 | + $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t"); |
|
| 300 | 300 | $ucfFieldId = $this->getCamelCase($fieldId, true); |
| 301 | - $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t"); |
|
| 302 | - $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t . "\t"); |
|
| 303 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId); |
|
| 304 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit'); |
|
| 305 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve'); |
|
| 301 | + $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t"); |
|
| 302 | + $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, false, $t."\t"); |
|
| 303 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId); |
|
| 304 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit'); |
|
| 305 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve'); |
|
| 306 | 306 | } |
| 307 | - $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t"); |
|
| 307 | + $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t"); |
|
| 308 | 308 | $ret .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t); |
| 309 | 309 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 310 | 310 | $ret .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t); |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | |
| 342 | 342 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 343 | 343 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 344 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 344 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 345 | 345 | |
| 346 | 346 | if (in_array(1, $fieldInForm)) { |
| 347 | 347 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t); |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t); |
| 350 | 350 | } |
| 351 | 351 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 352 | - $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t); |
|
| 352 | + $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t); |
|
| 353 | 353 | $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t); |
| 354 | 354 | $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t); |
| 355 | 355 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | } |
| 415 | 415 | $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t"); |
| 416 | 416 | |
| 417 | - $cases = [ |
|
| 417 | + $cases = [ |
|
| 418 | 418 | 'list' => [$list], |
| 419 | 419 | 'new' => [$new], |
| 420 | 420 | 'save' => [$save], |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | $ret .= $uCodeVComments->getUserModVersion(2, "'com_id'", 'comments', "'itemName'"); |
| 231 | 231 | $ret .= Tdmcreate\Files\CreatePhpCode::getInstance()->getPhpCodeCommentLine('Comment callback functions'); |
| 232 | 232 | $ret .= $uCodeVComments->getUserModVersion(2, "'include/comment_functions.php'", 'comments', "'callbackFile'"); |
| 233 | - $descriptions = ['approve' => "'{$moduleDirname}CommentsApprove'", 'update' => "'{$moduleDirname}CommentsUpdate'"]; |
|
| 233 | + $descriptions = ['approve' => "'{$moduleDirname}CommentsApprove'", 'update' => "'{$moduleDirname}CommentsUpdate'"]; |
|
| 234 | 234 | $ret .= $uCodeVComments->getUserModVersion(3, $descriptions, 'comments', "'callback'"); |
| 235 | 235 | |
| 236 | 236 | return $ret; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | foreach (array_keys($tables) as $t) { |
| 256 | 256 | $tableName = $tables[$t]->getVar('table_name'); |
| 257 | 257 | $tablePermissions[] = $tables[$t]->getVar('table_permissions'); |
| 258 | - $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, '', true); |
|
| 258 | + $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, '', true); |
|
| 259 | 259 | } |
| 260 | 260 | if (in_array(1, $tablePermissions)) { |
| 261 | 261 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'permissions', '', true); |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | private function getXoopsVersionBlocks($moduleDirname, $tables, $language) |
| 399 | 399 | { |
| 400 | 400 | $ret = $this->getDashComment('Blocks'); |
| 401 | - $ret .= $this->getSimpleString('$b = 1;'); |
|
| 401 | + $ret .= $this->getSimpleString('$b = 1;'); |
|
| 402 | 402 | $tableCategory = []; |
| 403 | 403 | foreach (array_keys($tables) as $i) { |
| 404 | 404 | $tableName = $tables[$i]->getVar('table_name'); |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | $uCodeVTBlocks = UserXoopsCode::getInstance(); |
| 438 | 438 | $stuTableName = mb_strtoupper($tableName); |
| 439 | 439 | $ucfTableName = ucfirst($tableName); |
| 440 | - $ret = $phpCodeVTBlocks->getPhpCodeCommentLine($ucfTableName . ' ' . $type); |
|
| 440 | + $ret = $phpCodeVTBlocks->getPhpCodeCommentLine($ucfTableName.' '.$type); |
|
| 441 | 441 | $blocks = [ |
| 442 | 442 | 'file' => "'{$tableName}.php'", |
| 443 | 443 | 'name' => "{$language}{$stuTableName}_BLOCK_{$stuTableSoleName}", |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | $uCodeVConfig = UserXoopsCode::getInstance(); |
| 469 | 469 | $moduleDirname = $module->getVar('mod_dirname'); |
| 470 | 470 | $ret = $this->getDashComment('Config'); |
| 471 | - $ret .= $this->getSimpleString('$c = 1;'); |
|
| 471 | + $ret .= $this->getSimpleString('$c = 1;'); |
|
| 472 | 472 | |
| 473 | 473 | $table_permissions = 0; |
| 474 | 474 | $table_admin = 0; |
@@ -490,15 +490,15 @@ discard block |
||
| 490 | 490 | $stuFieldName = mb_strtoupper($rpFieldName); |
| 491 | 491 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Editor', $rpFieldName); |
| 492 | 492 | $ret .= $xCodeVConfig->getXcLoad('xoopseditorhandler'); |
| 493 | - $ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler' . $ucfFieldName, 'XoopsEditorHandler::getInstance()'); |
|
| 494 | - $editor = [ |
|
| 493 | + $ret .= $xCodeVConfig->getXcEqualsOperator('$editorHandler'.$ucfFieldName, 'XoopsEditorHandler::getInstance()'); |
|
| 494 | + $editor = [ |
|
| 495 | 495 | 'name' => "'editor_{$rpFieldName}'", |
| 496 | 496 | 'title' => "'{$language}EDITOR_{$stuFieldName}'", |
| 497 | 497 | 'description' => "'{$language}EDITOR_{$stuFieldName}_DESC'", |
| 498 | 498 | 'formtype' => "'select'", |
| 499 | 499 | 'valuetype' => "'text'", |
| 500 | 500 | 'default' => "'dhtml'", |
| 501 | - 'options' => 'array_flip($editorHandler' . $ucfFieldName . '->getList())', |
|
| 501 | + 'options' => 'array_flip($editorHandler'.$ucfFieldName.'->getList())', |
|
| 502 | 502 | ]; |
| 503 | 503 | $ret .= $uCodeVConfig->getUserModVersion(3, $editor, 'config', '$c'); |
| 504 | 504 | $ret .= $this->getSimpleString('++$c;'); |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | $ret .= $this->getSimpleString('++$c;'); |
| 572 | 572 | } |
| 573 | 573 | $keyword = implode(', ', $this->getKeywords()); |
| 574 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords'); |
|
| 574 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords'); |
|
| 575 | 575 | $arrayKeyword = [ |
| 576 | 576 | 'name' => "'keywords'", |
| 577 | 577 | 'title' => "'{$language}KEYWORDS'", |
@@ -585,8 +585,8 @@ discard block |
||
| 585 | 585 | unset($this->keywords); |
| 586 | 586 | |
| 587 | 587 | if (1 === $field_images) { |
| 588 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
|
| 589 | - $maxsize = [ |
|
| 588 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
|
| 589 | + $maxsize = [ |
|
| 590 | 590 | 'name' => "'maxsize'", |
| 591 | 591 | 'title' => "'{$language}MAXSIZE'", |
| 592 | 592 | 'description' => "'{$language}MAXSIZE_DESC'", |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | $ret .= $this->getSimpleString('++$c;'); |
| 611 | 611 | } |
| 612 | 612 | if (1 === $table_admin) { |
| 613 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager'); |
|
| 613 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager'); |
|
| 614 | 614 | $adminPager = [ |
| 615 | 615 | 'name' => "'adminpager'", |
| 616 | 616 | 'title' => "'{$language}ADMIN_PAGER'", |
@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | $ret .= $this->getSimpleString('++$c;'); |
| 624 | 624 | } |
| 625 | 625 | if (1 === $table_user) { |
| 626 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager'); |
|
| 626 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager'); |
|
| 627 | 627 | $userPager = [ |
| 628 | 628 | 'name' => "'userpager'", |
| 629 | 629 | 'title' => "'{$language}USER_PAGER'", |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | $ret .= $this->getSimpleString('++$c;'); |
| 637 | 637 | } |
| 638 | 638 | if (1 === $table_tag) { |
| 639 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag'); |
|
| 639 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag'); |
|
| 640 | 640 | $useTag = [ |
| 641 | 641 | 'name' => "'usetag'", |
| 642 | 642 | 'title' => "'{$language}USE_TAG'", |
@@ -648,8 +648,8 @@ discard block |
||
| 648 | 648 | $ret .= $uCodeVConfig->getUserModVersion(3, $useTag, 'config', '$c'); |
| 649 | 649 | $ret .= $this->getSimpleString('++$c;'); |
| 650 | 650 | } |
| 651 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column'); |
|
| 652 | - $numbCol = [ |
|
| 651 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column'); |
|
| 652 | + $numbCol = [ |
|
| 653 | 653 | 'name' => "'numb_col'", |
| 654 | 654 | 'title' => "'{$language}NUMB_COL'", |
| 655 | 655 | 'description' => "'{$language}NUMB_COL_DESC'", |
@@ -661,7 +661,7 @@ discard block |
||
| 661 | 661 | $ret .= $uCodeVConfig->getUserModVersion(3, $numbCol, 'config', '$c'); |
| 662 | 662 | $ret .= $this->getSimpleString('++$c;'); |
| 663 | 663 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Divide by'); |
| 664 | - $divideby = [ |
|
| 664 | + $divideby = [ |
|
| 665 | 665 | 'name' => "'divideby'", |
| 666 | 666 | 'title' => "'{$language}DIVIDEBY'", |
| 667 | 667 | 'description' => "'{$language}DIVIDEBY_DESC'", |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | $ret .= $uCodeVConfig->getUserModVersion(3, $divideby, 'config', '$c'); |
| 674 | 674 | $ret .= $this->getSimpleString('++$c;'); |
| 675 | 675 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Table type'); |
| 676 | - $tableType = [ |
|
| 676 | + $tableType = [ |
|
| 677 | 677 | 'name' => "'table_type'", |
| 678 | 678 | 'title' => "'{$language}TABLE_TYPE'", |
| 679 | 679 | 'description' => "'{$language}DIVIDEBY_DESC'", |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | $ret .= $uCodeVConfig->getUserModVersion(3, $tableType, 'config', '$c'); |
| 686 | 686 | $ret .= $this->getSimpleString('++$c;'); |
| 687 | 687 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Panel by'); |
| 688 | - $panelType = [ |
|
| 688 | + $panelType = [ |
|
| 689 | 689 | 'name' => "'panel_type'", |
| 690 | 690 | 'title' => "'{$language}PANEL_TYPE'", |
| 691 | 691 | 'description' => "'{$language}PANEL_TYPE_DESC'", |
@@ -697,7 +697,7 @@ discard block |
||
| 697 | 697 | $ret .= $uCodeVConfig->getUserModVersion(3, $panelType, 'config', '$c'); |
| 698 | 698 | $ret .= $this->getSimpleString('++$c;'); |
| 699 | 699 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Advertise'); |
| 700 | - $advertise = [ |
|
| 700 | + $advertise = [ |
|
| 701 | 701 | 'name' => "'advertise'", |
| 702 | 702 | 'title' => "'{$language}ADVERTISE'", |
| 703 | 703 | 'description' => "'{$language}ADVERTISE_DESC'", |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | $ret .= $uCodeVConfig->getUserModVersion(3, $advertise, 'config', '$c'); |
| 709 | 709 | $ret .= $this->getSimpleString('++$c;'); |
| 710 | 710 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Bookmarks'); |
| 711 | - $bookmarks = [ |
|
| 711 | + $bookmarks = [ |
|
| 712 | 712 | 'name' => "'bookmarks'", |
| 713 | 713 | 'title' => "'{$language}BOOKMARKS'", |
| 714 | 714 | 'description' => "'{$language}BOOKMARKS_DESC'", |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | $ret .= $uCodeVConfig->getUserModVersion(3, $facebookComments, 'config', '$c'); |
| 731 | 731 | $ret .= $this->getSimpleString('++$c;'); |
| 732 | 732 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Disqus Comments'); |
| 733 | - $disqusComments = [ |
|
| 733 | + $disqusComments = [ |
|
| 734 | 734 | 'name' => "'disqus_comments'", |
| 735 | 735 | 'title' => "'{$language}DISQUS_COMMENTS'", |
| 736 | 736 | 'description' => "'{$language}DISQUS_COMMENTS_DESC'", |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | $ret .= $uCodeVConfig->getUserModVersion(3, $disqusComments, 'config', '$c'); |
| 742 | 742 | $ret .= $this->getSimpleString('++$c;'); |
| 743 | 743 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Maintained by'); |
| 744 | - $maintainedby = [ |
|
| 744 | + $maintainedby = [ |
|
| 745 | 745 | 'name' => "'maintainedby'", |
| 746 | 746 | 'title' => "'{$language}MAINTAINEDBY'", |
| 747 | 747 | 'description' => "'{$language}MAINTAINEDBY_DESC'", |
@@ -777,7 +777,7 @@ discard block |
||
| 777 | 777 | $ret = ''; |
| 778 | 778 | switch ($type) { |
| 779 | 779 | case 'category': |
| 780 | - $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify'); |
|
| 780 | + $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify'); |
|
| 781 | 781 | $category = [ |
| 782 | 782 | 'name' => "'category'", |
| 783 | 783 | 'title' => "'{$language}{$stuTableName}_NOTIFY'", |
@@ -786,10 +786,10 @@ discard block |
||
| 786 | 786 | 'item_name' => "'{$item}'", |
| 787 | 787 | "'allow_bookmark'" => '1', |
| 788 | 788 | ]; |
| 789 | - $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'"); |
|
| 789 | + $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'"); |
|
| 790 | 790 | break; |
| 791 | 791 | case 'event': |
| 792 | - $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify'); |
|
| 792 | + $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify'); |
|
| 793 | 793 | $event = [ |
| 794 | 794 | 'name' => "'{$typeOfNotify}'", |
| 795 | 795 | 'category' => "'{$tableName}'", |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | 'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", |
| 801 | 801 | 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", |
| 802 | 802 | ]; |
| 803 | - $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'"); |
|
| 803 | + $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'"); |
|
| 804 | 804 | break; |
| 805 | 805 | } |
| 806 | 806 | |
@@ -873,25 +873,25 @@ discard block |
||
| 873 | 873 | $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'global', 0, 'global_new_category', $tableSoleName, 'global_newcategory_notify', $num); |
| 874 | 874 | ++$num; |
| 875 | 875 | } |
| 876 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_' . 'modify_notify', $num); |
|
| 876 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_'.'modify_notify', $num); |
|
| 877 | 877 | if (in_array(1, $tableBroken)) { |
| 878 | 878 | ++$num; |
| 879 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_' . 'broken_notify', $num); |
|
| 879 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_'.'broken_notify', $num); |
|
| 880 | 880 | } |
| 881 | 881 | if (in_array(1, $tableSubmit)) { |
| 882 | 882 | ++$num; |
| 883 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_' . 'submit_notify', $num); |
|
| 883 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_'.'submit_notify', $num); |
|
| 884 | 884 | } |
| 885 | 885 | ++$num; |
| 886 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_' . $tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new' . $tableSoleName . '_notify', $num); |
|
| 886 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_'.$tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new'.$tableSoleName.'_notify', $num); |
|
| 887 | 887 | if (in_array(1, $tableCategory)) { |
| 888 | 888 | ++$num; |
| 889 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_' . $tableSoleName . 'submit_notify', $num); |
|
| 889 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_'.$tableSoleName.'submit_notify', $num); |
|
| 890 | 890 | ++$num; |
| 891 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new' . $tableSoleName . '_notify', $num); |
|
| 891 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new'.$tableSoleName.'_notify', $num); |
|
| 892 | 892 | } |
| 893 | 893 | ++$num; |
| 894 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName . '_approve_notify', $num); |
|
| 894 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName.'_approve_notify', $num); |
|
| 895 | 895 | unset($num); |
| 896 | 896 | |
| 897 | 897 | return $ret; |
@@ -921,7 +921,7 @@ discard block |
||
| 921 | 921 | 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 922 | 922 | 'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", |
| 923 | 923 | ]; |
| 924 | - $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 924 | + $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 925 | 925 | |
| 926 | 926 | return $ret; |
| 927 | 927 | } |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | 'item_name' => "'{$item}'", |
| 954 | 954 | 'allow_bookmark' => (string)$allow, |
| 955 | 955 | ]; |
| 956 | - $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 956 | + $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 957 | 957 | |
| 958 | 958 | return $ret; |
| 959 | 959 | } |
@@ -977,7 +977,7 @@ discard block |
||
| 977 | 977 | $uCodeVNTN = UserXoopsCode::getInstance(); |
| 978 | 978 | $stuTitle = mb_strtoupper($title); |
| 979 | 979 | $ucfTitle = ucfirst($title); |
| 980 | - $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle . ' Notify'); |
|
| 980 | + $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle.' Notify'); |
|
| 981 | 981 | $table = [ |
| 982 | 982 | 'name' => "'{$name}'", |
| 983 | 983 | 'title' => "{$language}{$stuTitle}_NOTIFY", |
@@ -986,7 +986,7 @@ discard block |
||
| 986 | 986 | 'item_name' => "'{$item}'", |
| 987 | 987 | 'allow_bookmark' => (string)$allow, |
| 988 | 988 | ]; |
| 989 | - $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
|
| 989 | + $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
|
| 990 | 990 | |
| 991 | 991 | return $ret; |
| 992 | 992 | } |
@@ -1012,7 +1012,7 @@ discard block |
||
| 1012 | 1012 | $title = mb_strtoupper($title); |
| 1013 | 1013 | $table = mb_strtoupper($table); |
| 1014 | 1014 | $ucfTitle = ucfirst($title); |
| 1015 | - $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle . ' Notify'); |
|
| 1015 | + $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle.' Notify'); |
|
| 1016 | 1016 | $event = [ |
| 1017 | 1017 | 'name' => "'{$name}'", |
| 1018 | 1018 | 'category' => "'{$category}'", |
@@ -1023,7 +1023,7 @@ discard block |
||
| 1023 | 1023 | 'mail_template' => "'{$mail}'", |
| 1024 | 1024 | 'mail_subject' => "{$language}{$title}_NOTIFY_SUBJECT", |
| 1025 | 1025 | ]; |
| 1026 | - $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num); |
|
| 1026 | + $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num); |
|
| 1027 | 1027 | |
| 1028 | 1028 | return $ret; |
| 1029 | 1029 | } |
@@ -1042,14 +1042,14 @@ discard block |
||
| 1042 | 1042 | $moduleDirname = $module->getVar('mod_dirname'); |
| 1043 | 1043 | $language = $this->getLanguage($moduleDirname, 'MI'); |
| 1044 | 1044 | $content = $this->getHeaderFilesComments($module, $filename); |
| 1045 | - $content .= $this->getXoopsVersionHeader($module, $language); |
|
| 1045 | + $content .= $this->getXoopsVersionHeader($module, $language); |
|
| 1046 | 1046 | if (1 == $module->getVar('mod_admin')) { |
| 1047 | 1047 | $content .= $this->getXoopsVersionTemplatesAdmin($moduleDirname, $tables); |
| 1048 | 1048 | } |
| 1049 | 1049 | if (1 == $module->getVar('mod_user')) { |
| 1050 | 1050 | $content .= $this->getXoopsVersionTemplatesUser($moduleDirname, $tables); |
| 1051 | 1051 | } |
| 1052 | - $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables); |
|
| 1052 | + $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables); |
|
| 1053 | 1053 | $tableSearch = []; |
| 1054 | 1054 | $tableComments = []; |
| 1055 | 1055 | $tableSubmenu = []; |
@@ -78,11 +78,11 @@ discard block |
||
| 78 | 78 | $ret = $pc->getPhpCodeCommentLine('Form Text', $ucfFieldName, "\t\t"); |
| 79 | 79 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", "\t\t"); |
| 80 | 80 | $formText = $cc->getClassXoopsFormText('', $language, $fieldName, 20, 150, $ccFieldName, true); |
| 81 | - $ret .= $cc->getClassAddElement('form', $formText . $required); |
|
| 81 | + $ret .= $cc->getClassAddElement('form', $formText.$required); |
|
| 82 | 82 | } else { |
| 83 | 83 | $ret = $pc->getPhpCodeCommentLine('Form Text', $ucfFieldName, "\t\t"); |
| 84 | 84 | $formText = $cc->getClassXoopsFormText('', $language, $fieldName, 50, 255, "this->getVar('{$fieldName}')", true); |
| 85 | - $ret .= $cc->getClassAddElement('form', $formText . $required); |
|
| 85 | + $ret .= $cc->getClassAddElement('form', $formText.$required); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | return $ret; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 106 | 106 | $ret = $pc->getPhpCodeCommentLine('Form Text Area', $ucfFieldName, "\t\t"); |
| 107 | 107 | $formTextArea = $cc->getClassXoopsFormTextArea('', $language, $fieldName, 4, 47, true); |
| 108 | - $ret .= $cc->getClassAddElement('form', $formTextArea . $required); |
|
| 108 | + $ret .= $cc->getClassAddElement('form', $formTextArea.$required); |
|
| 109 | 109 | |
| 110 | 110 | return $ret; |
| 111 | 111 | } |
@@ -130,8 +130,8 @@ discard block |
||
| 130 | 130 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 131 | 131 | |
| 132 | 132 | $ret = $pc->getPhpCodeCommentLine('Form editor', $ucfFieldName, "\t\t"); |
| 133 | - $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t"); |
|
| 134 | - $getConfig = $xc->getXcGetConfig($moduleDirname, 'editor_' . $rpFieldName); |
|
| 133 | + $ret .= $pc->getPhpCodeArray('editorConfigs', null, false, "\t\t"); |
|
| 134 | + $getConfig = $xc->getXcGetConfig($moduleDirname, 'editor_'.$rpFieldName); |
|
| 135 | 135 | $configs = [ |
| 136 | 136 | 'name' => "'{$fieldName}'", |
| 137 | 137 | 'value' => "\$this->getVar('{$fieldName}', 'e')", |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $ret .= $xc->getXcEqualsOperator("\$editorConfigs['{$c}']", $d, null, false, "\t\t"); |
| 146 | 146 | } |
| 147 | 147 | $formEditor = $cc->getClassXoopsFormEditor('', $language, $fieldName, 'editorConfigs', true); |
| 148 | - $ret .= $cc->getClassAddElement('form', $formEditor . $required); |
|
| 148 | + $ret .= $cc->getClassAddElement('form', $formEditor.$required); |
|
| 149 | 149 | |
| 150 | 150 | return $ret; |
| 151 | 151 | } |
@@ -171,20 +171,20 @@ discard block |
||
| 171 | 171 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 172 | 172 | $t = "\t\t"; |
| 173 | 173 | if (in_array(5, $fieldElementId) > 1) { |
| 174 | - $ret = $pc->getPhpCodeCommentLine('Form Check Box', 'List Options ' . $ucfFieldName, $t); |
|
| 174 | + $ret = $pc->getPhpCodeCommentLine('Form Check Box', 'List Options '.$ucfFieldName, $t); |
|
| 175 | 175 | $ret .= $xc->getXcEqualsOperator('$checkOption', '$this->getOptions()'); |
| 176 | - $foreach = $cc->getClassXoopsFormCheckBox('check' . $ucfFieldName, '<hr />', $tableSoleName . '_option', '$checkOption', false, $t); |
|
| 177 | - $foreach .= $cc->getClassSetDescription('check' . $ucfFieldName, "{$language}{$stuTableSoleName}_OPTIONS_DESC", $t); |
|
| 178 | - $foreach .= $cc->getClassAddOption('check' . $ucfFieldName, "\$option, {$language}{$stuTableSoleName}_ . strtoupper(\$option)", $t . "\t"); |
|
| 176 | + $foreach = $cc->getClassXoopsFormCheckBox('check'.$ucfFieldName, '<hr />', $tableSoleName.'_option', '$checkOption', false, $t); |
|
| 177 | + $foreach .= $cc->getClassSetDescription('check'.$ucfFieldName, "{$language}{$stuTableSoleName}_OPTIONS_DESC", $t); |
|
| 178 | + $foreach .= $cc->getClassAddOption('check'.$ucfFieldName, "\$option, {$language}{$stuTableSoleName}_ . strtoupper(\$option)", $t."\t"); |
|
| 179 | 179 | $ret .= $pc->getPhpCodeForeach("{$tableName}All", false, false, 'option', $foreach, $t); |
| 180 | 180 | $intElem = "\$check{$ucfFieldName}{$required}"; |
| 181 | 181 | $ret .= $cc->getClassAddElement('form', $intElem, $t); |
| 182 | 182 | } else { |
| 183 | 183 | $ret = $pc->getPhpCodeCommentLine('Form Check Box', $ucfFieldName, $t); |
| 184 | 184 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 185 | - $ret .= $cc->getClassXoopsFormCheckBox('check' . $ucfFieldName, (string)$language, $fieldName, "\${$ccFieldName}", false, $t); |
|
| 185 | + $ret .= $cc->getClassXoopsFormCheckBox('check'.$ucfFieldName, (string)$language, $fieldName, "\${$ccFieldName}", false, $t); |
|
| 186 | 186 | $option = "1, {$language}"; |
| 187 | - $ret .= $cc->getClassAddOption('check' . $ucfFieldName, $option, $t); |
|
| 187 | + $ret .= $cc->getClassAddOption('check'.$ucfFieldName, $option, $t); |
|
| 188 | 188 | $intElem = "\$check{$ucfFieldName}{$required}"; |
| 189 | 189 | $ret .= $cc->getClassAddElement('form', $intElem, $t); |
| 190 | 190 | } |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 208 | 208 | $ret = $pc->getPhpCodeCommentLine('Form Hidden', $ucfFieldName, "\t\t"); |
| 209 | 209 | $formHidden = $cc->getClassXoopsFormHidden('', $fieldName, $fieldName, true, true); |
| 210 | - $ret .= $cc->getClassAddElement('form', $formHidden); |
|
| 210 | + $ret .= $cc->getClassAddElement('form', $formHidden); |
|
| 211 | 211 | |
| 212 | 212 | return $ret; |
| 213 | 213 | } |
@@ -232,16 +232,16 @@ discard block |
||
| 232 | 232 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 233 | 233 | $stuTableName = mb_strtoupper($tableName); |
| 234 | 234 | $rpFieldName = $tf->getRightString($fieldName); |
| 235 | - $stuSoleName = mb_strtoupper($tableSoleName . '_' . $rpFieldName); |
|
| 235 | + $stuSoleName = mb_strtoupper($tableSoleName.'_'.$rpFieldName); |
|
| 236 | 236 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 237 | 237 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 238 | 238 | $t = "\t\t"; |
| 239 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, $t); |
|
| 240 | - $ret .= $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 241 | - $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t); |
|
| 239 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, $t); |
|
| 240 | + $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 241 | + $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
|
| 242 | 242 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/Frameworks/moduleclasses/icons/32'", null, false, $t); |
| 243 | - $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language . $stuSoleName, '<br>', $t); |
|
| 244 | - $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 243 | + $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language.$stuSoleName, '<br>', $t); |
|
| 244 | + $sprintf = $pc->getPhpCodeSprintf($language.'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 245 | 245 | $ret .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, $fieldName, $ccFieldName, 5, 'false', false, $t); |
| 246 | 246 | $ret .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $imageDirectory', $t); |
| 247 | 247 | $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t"); |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | $ret .= $pc->getPhpCodeCommentLine('Form', 'File', $t); |
| 256 | 256 | $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t); |
| 257 | 257 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 258 | - $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'FORM_IMAGE_LIST_' . $stuTableName, 'attachedfile', $getConfig, true, ''); |
|
| 258 | + $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_IMAGE_LIST_'.$stuTableName, 'attachedfile', $getConfig, true, ''); |
|
| 259 | 259 | $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormFile, $t); |
| 260 | 260 | $xoopsFormLabel1 = $cc->getClassXoopsFormLabel('', "''", null, true, $t); |
| 261 | 261 | $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormLabel1, $t); |
@@ -284,12 +284,12 @@ discard block |
||
| 284 | 284 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 285 | 285 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 286 | 286 | $t = "\t\t\t"; |
| 287 | - $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files ' . $ucfFieldName, "\t\t"); |
|
| 288 | - $contentIf = $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 289 | - $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t); |
|
| 287 | + $ret = $pc->getPhpCodeCommentLine('Form Frameworks', 'Image Files '.$ucfFieldName, "\t\t"); |
|
| 288 | + $contentIf = $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 289 | + $contentIf .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
|
| 290 | 290 | $contentIf .= $xc->getXcEqualsOperator('$uploadDirectory', "'/uploads/{$moduleDirname}/images/shots'", null, false, $t); |
| 291 | - $contentIf .= $cc->getClassXoopsFormElementTray('imageTray', $language . 'FORM_IMAGE', '<br>', $t); |
|
| 292 | - $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_PATH', '".{$uploadDirectory}/"'); |
|
| 291 | + $contentIf .= $cc->getClassXoopsFormElementTray('imageTray', $language.'FORM_IMAGE', '<br>', $t); |
|
| 292 | + $sprintf = $pc->getPhpCodeSprintf($language.'FORM_PATH', '".{$uploadDirectory}/"'); |
|
| 293 | 293 | $contentIf .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, 'selected_image', "\${$moduleDirname}ShotImage", 5, 'false', false, $t); |
| 294 | 294 | $contentIf .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $uploadDirectory', $t); |
| 295 | 295 | $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t"); |
@@ -303,15 +303,15 @@ discard block |
||
| 303 | 303 | $contentIf .= $pc->getPhpCodeCommentLine('Form', 'File', "\t\t"); |
| 304 | 304 | $contentIf .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t); |
| 305 | 305 | $getConfigFile = $xc->getXcGetConfig($moduleDirname, 'maxuploadsize'); |
| 306 | - $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . '_FORM_UPLOAD', 'attachedimage', $getConfigFile, true, ''); |
|
| 307 | - $contentIf1 = $cc->getClassAddElement('fileSelectTray', $xoopsFormFile . $required, $t . "\t"); |
|
| 306 | + $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'_FORM_UPLOAD', 'attachedimage', $getConfigFile, true, ''); |
|
| 307 | + $contentIf1 = $cc->getClassAddElement('fileSelectTray', $xoopsFormFile.$required, $t."\t"); |
|
| 308 | 308 | |
| 309 | 309 | $contentIf .= $cc->getClassAddElement('imageTray', '$fileSelectTray', $t); |
| 310 | 310 | $contentIf .= $cc->getClassAddElement('form', "\$imageTray{$required}", $t); |
| 311 | 311 | |
| 312 | 312 | $contentIf = $pc->getPhpCodeConditions('$permissionUpload', ' == ', 'true', $contentIf1, false, $t); |
| 313 | 313 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'useshots'); |
| 314 | - $ret .= $pc->getPhpCodeConditions($getConfig, null, null, $contentIf, false, "\t\t"); |
|
| 314 | + $ret .= $pc->getPhpCodeConditions($getConfig, null, null, $contentIf, false, "\t\t"); |
|
| 315 | 315 | |
| 316 | 316 | return $ret; |
| 317 | 317 | } |
@@ -335,14 +335,14 @@ discard block |
||
| 335 | 335 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 336 | 336 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 337 | 337 | $t = "\t\t"; |
| 338 | - $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File ' . $ucfFieldName, $t); |
|
| 338 | + $ret = $pc->getPhpCodeCommentLine('Form Url', 'Text File '.$ucfFieldName, $t); |
|
| 339 | 339 | $ret .= $cc->getClassXoopsFormElementTray('formUrlFile', '_OPTIONS', '<br><br>', $t); |
| 340 | 340 | $ret .= $pc->getPhpCodeTernaryOperator('formUrl', '$this->isNew()', "'{$fieldDefault}'", "\$this->getVar('{$fieldName}')", $t); |
| 341 | 341 | $ret .= $cc->getClassXoopsFormText('formText', $language, $fieldName, 75, 255, 'formUrl', false, $t); |
| 342 | - $ret .= $cc->getClassAddElement('formUrlFile', '$formText' . $required, $t); |
|
| 342 | + $ret .= $cc->getClassAddElement('formUrlFile', '$formText'.$required, $t); |
|
| 343 | 343 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 344 | - $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'UPLOAD', 'attachedfile', $getConfig, true, ''); |
|
| 345 | - $ret .= $cc->getClassAddElement('formUrlFile', $xoopsFormFile . $required, $t); |
|
| 344 | + $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'UPLOAD', 'attachedfile', $getConfig, true, ''); |
|
| 345 | + $ret .= $cc->getClassAddElement('formUrlFile', $xoopsFormFile.$required, $t); |
|
| 346 | 346 | $ret .= $cc->getClassAddElement('form', '$formUrlFile', $t); |
| 347 | 347 | |
| 348 | 348 | return $ret; |
@@ -370,12 +370,12 @@ discard block |
||
| 370 | 370 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 371 | 371 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 372 | 372 | $t = "\t\t"; |
| 373 | - $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image ' . $ucfFieldName, $t); |
|
| 374 | - $ret .= $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 375 | - $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t); |
|
| 373 | + $ret = $pc->getPhpCodeCommentLine('Form Upload', 'Image '.$ucfFieldName, $t); |
|
| 374 | + $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 375 | + $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
|
| 376 | 376 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/uploads/{$moduleDirname}/images/{$tableName}'", null, false, $t); |
| 377 | 377 | $ret .= $cc->getClassXoopsFormElementTray('imageTray', '_OPTIONS', '<br>', $t); |
| 378 | - $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 378 | + $sprintf = $pc->getPhpCodeSprintf($language.'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 379 | 379 | $ret .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, $fieldName, $ccFieldName, 5, 'false', false, $t); |
| 380 | 380 | $ret .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $imageDirectory', $t); |
| 381 | 381 | $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t"); |
@@ -386,10 +386,10 @@ discard block |
||
| 386 | 386 | $paramLabel = "\"<br><img src='\".XOOPS_URL.\"/\".\$imageDirectory.\"/\".\${$ccFieldName}.\"' name='image1' id='image1' alt='' style='max-width:100px' />\""; |
| 387 | 387 | $xoopsFormLabel = $cc->getClassXoopsFormLabel('', "''", $paramLabel, true, ''); |
| 388 | 388 | $ret .= $cc->getClassAddElement('imageTray', $xoopsFormLabel, $t); |
| 389 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 389 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 390 | 390 | $ret .= $cc->getClassXoopsFormElementTray('fileSelectTray', "''", '<br>', $t); |
| 391 | 391 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 392 | - $xoopsFormFile = $cc->getClassXoopsFormFile('', $language . 'FORM_UPLOAD_IMAGE_' . $stuTableName, 'attachedfile', $getConfig, true, ''); |
|
| 392 | + $xoopsFormFile = $cc->getClassXoopsFormFile('', $language.'FORM_UPLOAD_IMAGE_'.$stuTableName, 'attachedfile', $getConfig, true, ''); |
|
| 393 | 393 | $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormFile, $t); |
| 394 | 394 | $xoopsFormLabel1 = $cc->getClassXoopsFormLabel('', "''", null, true); |
| 395 | 395 | $ret .= $cc->getClassAddElement('fileSelectTray', $xoopsFormLabel1, $t); |
@@ -419,11 +419,11 @@ discard block |
||
| 419 | 419 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 420 | 420 | $stuTableName = mb_strtoupper($tableName); |
| 421 | 421 | $t = "\t\t"; |
| 422 | - $ret = $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, $t); |
|
| 423 | - $ret .= $cc->getClassXoopsFormElementTray('fileUploadTray', $language . 'FORM_UPLOAD_FILE_' . $stuTableName, '<br>', $t); |
|
| 422 | + $ret = $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, $t); |
|
| 423 | + $ret .= $cc->getClassXoopsFormElementTray('fileUploadTray', $language.'FORM_UPLOAD_FILE_'.$stuTableName, '<br>', $t); |
|
| 424 | 424 | $getVar = $xc->getXcGetVar('', 'this', $fieldName, true); |
| 425 | 425 | $xoopsFormLabel = $cc->getClassXoopsFormLabel('', "''", $getVar, true); |
| 426 | - $condIf = $cc->getClassAddElement('fileUploadTray', $xoopsFormLabel, $t . "\t"); |
|
| 426 | + $condIf = $cc->getClassAddElement('fileUploadTray', $xoopsFormLabel, $t."\t"); |
|
| 427 | 427 | $ret .= $pc->getPhpCodeConditions('!$this->isNew()', null, null, $condIf, false, "\t\t"); |
| 428 | 428 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 429 | 429 | $xoopsFormFile = $cc->getClassXoopsFormFile('', "''", $fieldName, $getConfig, true, ''); |
@@ -451,10 +451,10 @@ discard block |
||
| 451 | 451 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 452 | 452 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 453 | 453 | $t = "\t\t"; |
| 454 | - $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker ' . $ucfFieldName, $t); |
|
| 454 | + $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker '.$ucfFieldName, $t); |
|
| 455 | 455 | $getVar = $xc->getXcGetVar('', 'this', $fieldName, true); |
| 456 | 456 | $xoopsFormFile = $cc->getClassXoopsFormColorPicker('', $language, $fieldName, $getVar, true, ''); |
| 457 | - $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
|
| 457 | + $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
|
| 458 | 458 | |
| 459 | 459 | return $ret; |
| 460 | 460 | } |
@@ -481,10 +481,10 @@ discard block |
||
| 481 | 481 | $t = "\t\t"; |
| 482 | 482 | $ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t); |
| 483 | 483 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $tableName, $t); |
| 484 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ucfTableName, $t); |
|
| 485 | - $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 486 | - $ret .= $cc->getClassAddOption($ccFieldName . 'Select', "'Empty'", $t); |
|
| 487 | - $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$tableName}Handler->getList()", $t); |
|
| 484 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'Select '.$ucfTableName, $t); |
|
| 485 | + $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 486 | + $ret .= $cc->getClassAddOption($ccFieldName.'Select', "'Empty'", $t); |
|
| 487 | + $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$tableName}Handler->getList()", $t); |
|
| 488 | 488 | $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t); |
| 489 | 489 | |
| 490 | 490 | return $ret; |
@@ -507,10 +507,10 @@ discard block |
||
| 507 | 507 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 508 | 508 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 509 | 509 | $t = "\t\t"; |
| 510 | - $ret = $pc->getPhpCodeCommentLine('Form Select', 'User ' . $ucfFieldName, $t); |
|
| 510 | + $ret = $pc->getPhpCodeCommentLine('Form Select', 'User '.$ucfFieldName, $t); |
|
| 511 | 511 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 512 | 512 | $xoopsSelectUser = $cc->getClassXoopsFormSelectUser('', $language, $fieldName, 'false', $fieldName, true, $t); |
| 513 | - $ret .= $cc->getClassAddElement('form', $xoopsSelectUser . $required, $t); |
|
| 513 | + $ret .= $cc->getClassAddElement('form', $xoopsSelectUser.$required, $t); |
|
| 514 | 514 | |
| 515 | 515 | return $ret; |
| 516 | 516 | } |
@@ -532,10 +532,10 @@ discard block |
||
| 532 | 532 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 533 | 533 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 534 | 534 | $t = "\t\t"; |
| 535 | - $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No ' . $ucfFieldName, $t); |
|
| 535 | + $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No '.$ucfFieldName, $t); |
|
| 536 | 536 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 537 | 537 | $xoopsRadioYN = $cc->getClassXoopsFormRadioYN('', $language, $fieldName, $ccFieldName, true, $t); |
| 538 | - $ret .= $cc->getClassAddElement('form', $xoopsRadioYN . $required, $t); |
|
| 538 | + $ret .= $cc->getClassAddElement('form', $xoopsRadioYN.$required, $t); |
|
| 539 | 539 | |
| 540 | 540 | return $ret; |
| 541 | 541 | } |
@@ -557,10 +557,10 @@ discard block |
||
| 557 | 557 | $t = "\t\t"; |
| 558 | 558 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 559 | 559 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 560 | - $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select ' . $ucfFieldName, $t); |
|
| 560 | + $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select '.$ucfFieldName, $t); |
|
| 561 | 561 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 562 | 562 | $xoopsTextDateSelect = $cc->getClassXoopsFormTextDateSelect('', $language, $fieldName, $fieldName, $ccFieldName, true, $t); |
| 563 | - $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect . $required, $t); |
|
| 563 | + $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect.$required, $t); |
|
| 564 | 564 | |
| 565 | 565 | return $ret; |
| 566 | 566 | } |
@@ -592,8 +592,8 @@ discard block |
||
| 592 | 592 | $ret = $pc->getPhpCodeCommentLine('Form Table', $rpFieldelementName, $t); |
| 593 | 593 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 594 | 594 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $rpFieldelementName, $t); |
| 595 | - $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 596 | - $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$rpFieldelementName}Handler->getList()", $t); |
|
| 595 | + $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 596 | + $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$rpFieldelementName}Handler->getList()", $t); |
|
| 597 | 597 | $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t); |
| 598 | 598 | } |
| 599 | 599 | |
@@ -625,13 +625,13 @@ discard block |
||
| 625 | 625 | $ret = $pc->getPhpCodeCommentLine('Form Table', $ucfTopicTableName, $t); |
| 626 | 626 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $stlTopicTableName, $t); |
| 627 | 627 | $ret .= $cc->getClassCriteriaCompo('criteria', $t); |
| 628 | - $ret .= $xc->getXcClearHandlerCount($stlTopicTableName . 'Count', $stlTopicTableName, '$criteria', $t); |
|
| 629 | - $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t . "\t"); |
|
| 630 | - $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName . 'All', $stlTopicTableName, '$criteria', $t . "\t"); |
|
| 631 | - $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName . 'Tree', $stlTopicTableName . 'All', $fieldId, $fieldPid, $t . "\t"); |
|
| 632 | - $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName . 'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t . "\t"); |
|
| 633 | - $formLabel = $cc->getClassXoopsFormLabel('', $language, "\${$ccFieldPid}", true, ''); |
|
| 634 | - $contIf .= $cc->getClassAddElement('form', $formLabel, $t . "\t"); |
|
| 628 | + $ret .= $xc->getXcClearHandlerCount($stlTopicTableName.'Count', $stlTopicTableName, '$criteria', $t); |
|
| 629 | + $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t."\t"); |
|
| 630 | + $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName.'All', $stlTopicTableName, '$criteria', $t."\t"); |
|
| 631 | + $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName.'Tree', $stlTopicTableName.'All', $fieldId, $fieldPid, $t."\t"); |
|
| 632 | + $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName.'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t."\t"); |
|
| 633 | + $formLabel = $cc->getClassXoopsFormLabel('', $language, "\${$ccFieldPid}", true, ''); |
|
| 634 | + $contIf .= $cc->getClassAddElement('form', $formLabel, $t."\t"); |
|
| 635 | 635 | $ret .= $pc->getPhpCodeConditions("\${$stlTopicTableName}Count", null, null, $contIf, false, $t); |
| 636 | 636 | $ret .= $pc->getPhpCodeUnset('criteria', $t); |
| 637 | 637 | |
@@ -656,11 +656,11 @@ discard block |
||
| 656 | 656 | $ret = $pc->getPhpCodeCommentLine('Use tag', 'module', $t); |
| 657 | 657 | $isDir = $pc->getPhpCodeIsDir("XOOPS_ROOT_PATH . '/modules/tag'"); |
| 658 | 658 | $ret .= $pc->getPhpCodeTernaryOperator('dirTag', $isDir, 'true', 'false', $t); |
| 659 | - $paramIf = '(' . $xc->getXcGetConfig($moduleDirname, 'usetag') . ' == 1)'; |
|
| 660 | - $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t . "\t"); |
|
| 661 | - $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t . "\t"); |
|
| 659 | + $paramIf = '('.$xc->getXcGetConfig($moduleDirname, 'usetag').' == 1)'; |
|
| 660 | + $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t."\t"); |
|
| 661 | + $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t."\t"); |
|
| 662 | 662 | $paramElem = $cc->getClassXoopsFormTag('', 'tag', 60, 255, 'tagId', 0, true, ''); |
| 663 | - $condIf .= $cc->getClassAddElement('form', $paramElem . $required, $t . "\t"); |
|
| 663 | + $condIf .= $cc->getClassAddElement('form', $paramElem.$required, $t."\t"); |
|
| 664 | 664 | $ret .= $pc->getPhpCodeConditions($paramIf, ' && ', '$dirTag', $condIf, false, $t); |
| 665 | 665 | |
| 666 | 666 | return $ret; |
@@ -700,7 +700,7 @@ discard block |
||
| 700 | 700 | $fieldId = $fieldName; |
| 701 | 701 | } |
| 702 | 702 | $rpFieldName = $tf->getRightString($fieldName); |
| 703 | - $language = $languageFunct . mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 703 | + $language = $languageFunct.mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 704 | 704 | $required = (1 == $fields[$f]->getVar('field_required')) ? ', true' : ''; |
| 705 | 705 | |
| 706 | 706 | $fieldElements = $tc->getHandler('fieldelements')->get($fieldElement); |
@@ -94,12 +94,12 @@ |
||
| 94 | 94 | $tableName = $table->getVar('table_name'); |
| 95 | 95 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 96 | 96 | $ret = ''; |
| 97 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 97 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 98 | 98 | $content = $hc->getHtmlHNumb('Services Panels', '2', 'page-header', "\t\t\t"); |
| 99 | 99 | $collg12 = $hc->getHtmlDiv($content, 'col-lg-12', "\t\t"); |
| 100 | 100 | $row = $hc->getHtmlDiv($collg12, 'row', "\t"); |
| 101 | 101 | $ret .= $hc->getHtmlDiv($row, 'container'); |
| 102 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 102 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 103 | 103 | |
| 104 | 104 | return $ret; |
| 105 | 105 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | { |
| 83 | 83 | $ret = $this->htmlcode->getSmartyIncludeFile($moduleDirname, 'breadcrumbs', false, true, '', "\n\n"); |
| 84 | 84 | $var = $this->htmlcode->getSmartySingleVar('ads', '', ''); |
| 85 | - $div = $this->htmlcode->getHtmlDiv($var, 'center', "\t","\n", false) ; |
|
| 85 | + $div = $this->htmlcode->getHtmlDiv($var, 'center', "\t", "\n", false); |
|
| 86 | 86 | $ret .= $this->htmlcode->getSmartyConditions('ads', ' != ', '\'\'', $div); |
| 87 | 87 | |
| 88 | 88 | return $ret; |
@@ -80,17 +80,17 @@ |
||
| 80 | 80 | $tf = Tdmcreate\Files\CreateFile::getInstance(); |
| 81 | 81 | $hsc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 82 | 82 | $title = $hsc->getSmartyDoubleVar('itm', 'title'); |
| 83 | - $titleElse = $hsc->getSmartyDoubleVar('itm', 'title', "\t\t\t", "\n") ; |
|
| 83 | + $titleElse = $hsc->getSmartyDoubleVar('itm', 'title', "\t\t\t", "\n"); |
|
| 84 | 84 | $link = $hsc->getSmartyDoubleVar('itm', 'link'); |
| 85 | 85 | $glyph = $hsc->getHtmlTag('i', ['class' => 'glyphicon glyphicon-home'], '', false, '', ''); |
| 86 | 86 | $anchor = $hsc->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home'); |
| 87 | 87 | $into = $hsc->getHtmlLi($anchor, 'bc-item', "\t"); |
| 88 | 88 | $anchorIf = $hsc->getHtmlAnchor($link, $title, $title, '', '', '', "\t\t\t", "\n"); |
| 89 | 89 | $breadcrumb = $hsc->getSmartyConditions('itm.link', '', '', $anchorIf, $titleElse, false, false, "\t\t", "\n"); |
| 90 | - $foreach = $hsc->getHtmlLi($breadcrumb, 'bc-item', "\t", "\n", true); |
|
| 91 | - $into .= $hsc->getSmartyForeach('itm', 'xoBreadcrumbs', $foreach, 'bcloop', '', "\t"); |
|
| 90 | + $foreach = $hsc->getHtmlLi($breadcrumb, 'bc-item', "\t", "\n", true); |
|
| 91 | + $into .= $hsc->getSmartyForeach('itm', 'xoBreadcrumbs', $foreach, 'bcloop', '', "\t"); |
|
| 92 | 92 | |
| 93 | - $content = $hsc->getHtmlOl($into, 'breadcrumb'); |
|
| 93 | + $content = $hsc->getHtmlOl($into, 'breadcrumb'); |
|
| 94 | 94 | |
| 95 | 95 | $tf->create($moduleDirname, 'templates', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
| 96 | 96 | |
@@ -92,23 +92,23 @@ |
||
| 92 | 92 | $hc = Tdmcreate\Files\CreateHtmlSmartyCodes::getInstance(); |
| 93 | 93 | |
| 94 | 94 | $const = $hc->getSmartyConst($language, 'SUBMIT_SUBMITONCE'); |
| 95 | - $li = $hc->getHtmlLi($const, '',"\t\t"); |
|
| 95 | + $li = $hc->getHtmlLi($const, '', "\t\t"); |
|
| 96 | 96 | $const = $hc->getSmartyConst($language, 'SUBMIT_ALLPENDING'); |
| 97 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 97 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 98 | 98 | $const = $hc->getSmartyConst($language, 'SUBMIT_DONTABUSE'); |
| 99 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 99 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 100 | 100 | $const = $hc->getSmartyConst($language, 'SUBMIT_TAKEDAYS'); |
| 101 | - $li .= $hc->getHtmlLi($const, '',"\t\t"); |
|
| 101 | + $li .= $hc->getHtmlLi($const, '', "\t\t"); |
|
| 102 | 102 | $ul = $hc->getHtmlUl($li, '', "\t"); |
| 103 | 103 | |
| 104 | - $ret = $hc->getHtmlEmpty('', '',"\n"); |
|
| 105 | - $ret .= $hc->getHtmlDiv($ul, $moduleDirname . '-tips'); |
|
| 104 | + $ret = $hc->getHtmlEmpty('', '', "\n"); |
|
| 105 | + $ret .= $hc->getHtmlDiv($ul, $moduleDirname.'-tips'); |
|
| 106 | 106 | $single = $hc->getSmartySingleVar('message_error'); |
| 107 | 107 | $divError = $hc->getHtmlDiv($single, 'errorMsg', "\t", "\n", false); |
| 108 | 108 | $ret .= $hc->getSmartyConditions('message_error', ' != ', '\'\'', $divError); |
| 109 | 109 | $single = $hc->getSmartySingleVar('form', "\t", "\n"); |
| 110 | - $ret .= $hc->getHtmlDiv($single, $moduleDirname . '-submitform'); |
|
| 111 | - $ret .= $hc->getHtmlEmpty('', '',"\n"); |
|
| 110 | + $ret .= $hc->getHtmlDiv($single, $moduleDirname.'-submitform'); |
|
| 111 | + $ret .= $hc->getHtmlEmpty('', '', "\n"); |
|
| 112 | 112 | |
| 113 | 113 | return $ret; |
| 114 | 114 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | - $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading'); |
|
| 105 | + $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading'); |
|
| 106 | 106 | $retElem = ''; |
| 107 | 107 | foreach (array_keys($fields) as $f) { |
| 108 | 108 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -115,41 +115,41 @@ discard block |
||
| 115 | 115 | $fieldName = $fields[$f]->getVar('field_name'); |
| 116 | 116 | $rpFieldName = $this->getRightString($fieldName); |
| 117 | 117 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 118 | - $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t"); |
|
| 118 | + $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify', "\t"); |
|
| 119 | 119 | break; |
| 120 | 120 | case 10: |
| 121 | 121 | $fieldName = $fields[$f]->getVar('field_name'); |
| 122 | 122 | $rpFieldName = $this->getRightString($fieldName); |
| 123 | 123 | $singleVar = $hc->getSmartySingleVar('xoops_icons32_url'); |
| 124 | 124 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 125 | - $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, (string)$tableName); |
|
| 126 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 125 | + $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, (string)$tableName); |
|
| 126 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 127 | 127 | unset($img); |
| 128 | 128 | break; |
| 129 | 129 | case 13: |
| 130 | 130 | $fieldName = $fields[$f]->getVar('field_name'); |
| 131 | 131 | $rpFieldName = $this->getRightString($fieldName); |
| 132 | - $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 132 | + $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 133 | 133 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 134 | - $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, (string)$tableName); |
|
| 135 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3',"\t"); |
|
| 134 | + $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, (string)$tableName); |
|
| 135 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3', "\t"); |
|
| 136 | 136 | unset($img); |
| 137 | 137 | break; |
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 | } |
| 142 | - $ret .= $hc->getHtmlDiv($retElem, 'panel-body'); |
|
| 142 | + $ret .= $hc->getHtmlDiv($retElem, 'panel-body'); |
|
| 143 | 143 | $retFoot = ''; |
| 144 | 144 | foreach (array_keys($fields) as $f) { |
| 145 | 145 | if (1 == $fields[$f]->getVar('field_user')) { |
| 146 | 146 | if (1 == $fields[$f]->getVar('field_tfoot')) { |
| 147 | 147 | $fieldName = $fields[$f]->getVar('field_name'); |
| 148 | 148 | $rpFieldName = $this->getRightString($fieldName); |
| 149 | - $langConst = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 149 | + $langConst = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 150 | 150 | $lang = $hc->getSmartyConst($language, $langConst); |
| 151 | 151 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 152 | - $retFoot .= $hc->getHtmlSpan($lang . ': ' . $doubleVar, 'block-pie justify',"\t"); |
|
| 152 | + $retFoot .= $hc->getHtmlSpan($lang.': '.$doubleVar, 'block-pie justify', "\t"); |
|
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | } |
@@ -100,10 +100,10 @@ discard block |
||
| 100 | 100 | $stuFieldName = mb_strtoupper($fieldName); |
| 101 | 101 | if ((1 == $tableAutoincrement) || (1 == $fields[$f]->getVar('field_user'))) { |
| 102 | 102 | $const = $hc->getSmartyConst($language, $stuFieldName); |
| 103 | - $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t"); |
|
| 103 | + $th .= $hc->getHtmlTag('th', ['class' => 'center'], $const, '', "\t\t\t"); |
|
| 104 | 104 | } |
| 105 | 105 | } |
| 106 | - $tr = $hc->getHtmlTableRow($th, 'head',"\t\t"); |
|
| 106 | + $tr = $hc->getHtmlTableRow($th, 'head', "\t\t"); |
|
| 107 | 107 | |
| 108 | 108 | return $hc->getHtmlTableThead($tr, 'outer', "\t"); |
| 109 | 109 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | switch ($fieldElement) { |
| 133 | 133 | case 9: |
| 134 | 134 | $span = $hc->getHtmlSpan("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", "#<{\${$tableSoleName}.{$rpFieldName}}>"); |
| 135 | - $ret .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t"); |
|
| 135 | + $ret .= $hc->getHtmlTableData($span, 'center', '', "\t\t\t"); |
|
| 136 | 136 | break; |
| 137 | 137 | case 10: |
| 138 | 138 | $img = $hc->getHtmlImage("<{xoModuleIcons32}><{\${$tableSoleName}.{$rpFieldName}}>", $tableName); |
@@ -140,15 +140,15 @@ discard block |
||
| 140 | 140 | break; |
| 141 | 141 | case 13: |
| 142 | 142 | $img = $hc->getHtmlImage("<{\${$moduleDirname}_upload_url}>/images/{$tableName}/<{\${$tableSoleName}.{$rpFieldName}}>", $tableName); |
| 143 | - $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t") ; |
|
| 143 | + $ret .= $hc->getHtmlTableData($img, 'center', '', "\t\t\t"); |
|
| 144 | 144 | break; |
| 145 | 145 | default: |
| 146 | - $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t") ; |
|
| 146 | + $ret .= $hc->getHtmlTableData("<{\${$tableSoleName}.{$rpFieldName}}>", 'center', '', "\t\t\t"); |
|
| 147 | 147 | break; |
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | - $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>',"\t\t") ; |
|
| 151 | + $row = $hc->getHtmlTableRow($ret, '<{cycle values="odd, even"}>', "\t\t"); |
|
| 152 | 152 | $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $row, '', '', "\t\t"); |
| 153 | 153 | |
| 154 | 154 | return $hc->getHtmlTableTbody($foreach, '', "\t"); |