@@ -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;'); |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | $ret .= $this->getSimpleString('++$c;'); |
| 555 | 555 | |
| 556 | 556 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Upload groups'); |
| 557 | - $uplgroups = [ |
|
| 557 | + $uplgroups = [ |
|
| 558 | 558 | 'name' => "'upload_groups'", |
| 559 | 559 | 'title' => "'{$language}UPLOAD_GROUPS'", |
| 560 | 560 | 'description' => "'{$language}UPLOAD_GROUPS_DESC'", |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | $ret .= $this->getSimpleString('++$c;'); |
| 589 | 589 | } |
| 590 | 590 | $keyword = implode(', ', $this->getKeywords()); |
| 591 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords'); |
|
| 591 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Keywords'); |
|
| 592 | 592 | $arrayKeyword = [ |
| 593 | 593 | 'name' => "'keywords'", |
| 594 | 594 | 'title' => "'{$language}KEYWORDS'", |
@@ -602,8 +602,8 @@ discard block |
||
| 602 | 602 | unset($this->keywords); |
| 603 | 603 | |
| 604 | 604 | if (1 === $field_images) { |
| 605 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
|
| 606 | - $maxsize = [ |
|
| 605 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Uploads : maxsize of image'); |
|
| 606 | + $maxsize = [ |
|
| 607 | 607 | 'name' => "'maxsize'", |
| 608 | 608 | 'title' => "'{$language}MAXSIZE'", |
| 609 | 609 | 'description' => "'{$language}MAXSIZE_DESC'", |
@@ -627,7 +627,7 @@ discard block |
||
| 627 | 627 | $ret .= $this->getSimpleString('++$c;'); |
| 628 | 628 | } |
| 629 | 629 | if (1 === $table_admin) { |
| 630 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager'); |
|
| 630 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Admin pager'); |
|
| 631 | 631 | $adminPager = [ |
| 632 | 632 | 'name' => "'adminpager'", |
| 633 | 633 | 'title' => "'{$language}ADMIN_PAGER'", |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | $ret .= $this->getSimpleString('++$c;'); |
| 641 | 641 | } |
| 642 | 642 | if (1 === $table_user) { |
| 643 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager'); |
|
| 643 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('User pager'); |
|
| 644 | 644 | $userPager = [ |
| 645 | 645 | 'name' => "'userpager'", |
| 646 | 646 | 'title' => "'{$language}USER_PAGER'", |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | $ret .= $this->getSimpleString('++$c;'); |
| 654 | 654 | } |
| 655 | 655 | if (1 === $table_tag) { |
| 656 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag'); |
|
| 656 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Use tag'); |
|
| 657 | 657 | $useTag = [ |
| 658 | 658 | 'name' => "'usetag'", |
| 659 | 659 | 'title' => "'{$language}USE_TAG'", |
@@ -665,8 +665,8 @@ discard block |
||
| 665 | 665 | $ret .= $uCodeVConfig->getUserModVersion(3, $useTag, 'config', '$c'); |
| 666 | 666 | $ret .= $this->getSimpleString('++$c;'); |
| 667 | 667 | } |
| 668 | - $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column'); |
|
| 669 | - $numbCol = [ |
|
| 668 | + $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Number column'); |
|
| 669 | + $numbCol = [ |
|
| 670 | 670 | 'name' => "'numb_col'", |
| 671 | 671 | 'title' => "'{$language}NUMB_COL'", |
| 672 | 672 | 'description' => "'{$language}NUMB_COL_DESC'", |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | $ret .= $uCodeVConfig->getUserModVersion(3, $numbCol, 'config', '$c'); |
| 679 | 679 | $ret .= $this->getSimpleString('++$c;'); |
| 680 | 680 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Divide by'); |
| 681 | - $divideby = [ |
|
| 681 | + $divideby = [ |
|
| 682 | 682 | 'name' => "'divideby'", |
| 683 | 683 | 'title' => "'{$language}DIVIDEBY'", |
| 684 | 684 | 'description' => "'{$language}DIVIDEBY_DESC'", |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | $ret .= $uCodeVConfig->getUserModVersion(3, $divideby, 'config', '$c'); |
| 691 | 691 | $ret .= $this->getSimpleString('++$c;'); |
| 692 | 692 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Table type'); |
| 693 | - $tableType = [ |
|
| 693 | + $tableType = [ |
|
| 694 | 694 | 'name' => "'table_type'", |
| 695 | 695 | 'title' => "'{$language}TABLE_TYPE'", |
| 696 | 696 | 'description' => "'{$language}DIVIDEBY_DESC'", |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | $ret .= $uCodeVConfig->getUserModVersion(3, $tableType, 'config', '$c'); |
| 703 | 703 | $ret .= $this->getSimpleString('++$c;'); |
| 704 | 704 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Panel by'); |
| 705 | - $panelType = [ |
|
| 705 | + $panelType = [ |
|
| 706 | 706 | 'name' => "'panel_type'", |
| 707 | 707 | 'title' => "'{$language}PANEL_TYPE'", |
| 708 | 708 | 'description' => "'{$language}PANEL_TYPE_DESC'", |
@@ -714,7 +714,7 @@ discard block |
||
| 714 | 714 | $ret .= $uCodeVConfig->getUserModVersion(3, $panelType, 'config', '$c'); |
| 715 | 715 | $ret .= $this->getSimpleString('++$c;'); |
| 716 | 716 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Advertise'); |
| 717 | - $advertise = [ |
|
| 717 | + $advertise = [ |
|
| 718 | 718 | 'name' => "'advertise'", |
| 719 | 719 | 'title' => "'{$language}ADVERTISE'", |
| 720 | 720 | 'description' => "'{$language}ADVERTISE_DESC'", |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | $ret .= $uCodeVConfig->getUserModVersion(3, $advertise, 'config', '$c'); |
| 726 | 726 | $ret .= $this->getSimpleString('++$c;'); |
| 727 | 727 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Bookmarks'); |
| 728 | - $bookmarks = [ |
|
| 728 | + $bookmarks = [ |
|
| 729 | 729 | 'name' => "'bookmarks'", |
| 730 | 730 | 'title' => "'{$language}BOOKMARKS'", |
| 731 | 731 | 'description' => "'{$language}BOOKMARKS_DESC'", |
@@ -747,7 +747,7 @@ discard block |
||
| 747 | 747 | $ret .= $uCodeVConfig->getUserModVersion(3, $facebookComments, 'config', '$c'); |
| 748 | 748 | $ret .= $this->getSimpleString('++$c;'); |
| 749 | 749 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Disqus Comments'); |
| 750 | - $disqusComments = [ |
|
| 750 | + $disqusComments = [ |
|
| 751 | 751 | 'name' => "'disqus_comments'", |
| 752 | 752 | 'title' => "'{$language}DISQUS_COMMENTS'", |
| 753 | 753 | 'description' => "'{$language}DISQUS_COMMENTS_DESC'", |
@@ -758,7 +758,7 @@ discard block |
||
| 758 | 758 | $ret .= $uCodeVConfig->getUserModVersion(3, $disqusComments, 'config', '$c'); |
| 759 | 759 | $ret .= $this->getSimpleString('++$c;'); |
| 760 | 760 | $ret .= $phpCodeVConfig->getPhpCodeCommentLine('Maintained by'); |
| 761 | - $maintainedby = [ |
|
| 761 | + $maintainedby = [ |
|
| 762 | 762 | 'name' => "'maintainedby'", |
| 763 | 763 | 'title' => "'{$language}MAINTAINEDBY'", |
| 764 | 764 | 'description' => "'{$language}MAINTAINEDBY_DESC'", |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | $ret = ''; |
| 795 | 795 | switch ($type) { |
| 796 | 796 | case 'category': |
| 797 | - $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify'); |
|
| 797 | + $ret .= $phpCodeNType->getPhpCodeCommentLine('Category Notify'); |
|
| 798 | 798 | $category = [ |
| 799 | 799 | 'name' => "'category'", |
| 800 | 800 | 'title' => "'{$language}{$stuTableName}_NOTIFY'", |
@@ -803,10 +803,10 @@ discard block |
||
| 803 | 803 | 'item_name' => "'{$item}'", |
| 804 | 804 | "'allow_bookmark'" => '1', |
| 805 | 805 | ]; |
| 806 | - $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'"); |
|
| 806 | + $ret .= $uCodeNType->getUserModVersion(3, $category, 'notification', "'{$type}'"); |
|
| 807 | 807 | break; |
| 808 | 808 | case 'event': |
| 809 | - $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify'); |
|
| 809 | + $ret .= $phpCodeNType->getPhpCodeCommentLine('Event Notify'); |
|
| 810 | 810 | $event = [ |
| 811 | 811 | 'name' => "'{$typeOfNotify}'", |
| 812 | 812 | 'category' => "'{$tableName}'", |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | 'mail_template' => "'{$tableName}_{$typeOfNotify}_notify'", |
| 818 | 818 | 'mail_subject' => "'{$language}{$stuTableName}_{$stuTypeOfNotify}_NOTIFY_SUBJECT'", |
| 819 | 819 | ]; |
| 820 | - $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'"); |
|
| 820 | + $ret .= $uCodeNType->getUserModVersion(3, $event, 'notification', "'{$type}'"); |
|
| 821 | 821 | break; |
| 822 | 822 | } |
| 823 | 823 | |
@@ -890,25 +890,25 @@ discard block |
||
| 890 | 890 | $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'global', 0, 'global_new_category', $tableSoleName, 'global_newcategory_notify', $num); |
| 891 | 891 | ++$num; |
| 892 | 892 | } |
| 893 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_' . 'modify_notify', $num); |
|
| 893 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'modify', 'global', 1, 'global_modify', $tableSoleName, 'global_'.'modify_notify', $num); |
|
| 894 | 894 | if (in_array(1, $tableBroken)) { |
| 895 | 895 | ++$num; |
| 896 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_' . 'broken_notify', $num); |
|
| 896 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'broken', 'global', 1, 'global_broken', $tableSoleName, 'global_'.'broken_notify', $num); |
|
| 897 | 897 | } |
| 898 | 898 | if (in_array(1, $tableSubmit)) { |
| 899 | 899 | ++$num; |
| 900 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_' . 'submit_notify', $num); |
|
| 900 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'global', 1, 'global_submit', $tableSoleName, 'global_'.'submit_notify', $num); |
|
| 901 | 901 | } |
| 902 | 902 | ++$num; |
| 903 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_' . $tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new' . $tableSoleName . '_notify', $num); |
|
| 903 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_'.$tableSoleName, 'global', 0, 'global_new', $tableSoleName, 'global_new'.$tableSoleName.'_notify', $num); |
|
| 904 | 904 | if (in_array(1, $tableCategory)) { |
| 905 | 905 | ++$num; |
| 906 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_' . $tableSoleName . 'submit_notify', $num); |
|
| 906 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'submit', 'category', 1, 'category_submit', $tableSoleName, 'category_'.$tableSoleName.'submit_notify', $num); |
|
| 907 | 907 | ++$num; |
| 908 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new' . $tableSoleName . '_notify', $num); |
|
| 908 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'new_category', 'category', 0, 'category', $tableSoleName, 'category_new'.$tableSoleName.'_notify', $num); |
|
| 909 | 909 | } |
| 910 | 910 | ++$num; |
| 911 | - $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName . '_approve_notify', $num); |
|
| 911 | + $ret .= $this->getXoopsVersionNotificationCodeComplete($language, 'event', 'approve', $tableSoleName, 1, $tableSoleName, $tableSoleName, $tableSoleName.'_approve_notify', $num); |
|
| 912 | 912 | unset($num); |
| 913 | 913 | |
| 914 | 914 | return $ret; |
@@ -938,7 +938,7 @@ discard block |
||
| 938 | 938 | 'description' => "{$language}{$title}_NOTIFY_DESC", |
| 939 | 939 | 'subscribe_from' => "array('index.php', '{$implodeFrom}.php')", |
| 940 | 940 | ]; |
| 941 | - $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 941 | + $ret .= $uCodeVNG->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 942 | 942 | |
| 943 | 943 | return $ret; |
| 944 | 944 | } |
@@ -970,7 +970,7 @@ discard block |
||
| 970 | 970 | 'item_name' => "'{$item}'", |
| 971 | 971 | 'allow_bookmark' => (string)$allow, |
| 972 | 972 | ]; |
| 973 | - $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 973 | + $ret .= $uCodeVNC->getUserModVersion(4, $global, 'notification', "'{$type}'", $num); |
|
| 974 | 974 | |
| 975 | 975 | return $ret; |
| 976 | 976 | } |
@@ -994,7 +994,7 @@ discard block |
||
| 994 | 994 | $uCodeVNTN = UserXoopsCode::getInstance(); |
| 995 | 995 | $stuTitle = mb_strtoupper($title); |
| 996 | 996 | $ucfTitle = ucfirst($title); |
| 997 | - $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle . ' Notify'); |
|
| 997 | + $ret = $phpCodeVNTN->getPhpCodeCommentLine($ucfTitle.' Notify'); |
|
| 998 | 998 | $table = [ |
| 999 | 999 | 'name' => "'{$name}'", |
| 1000 | 1000 | 'title' => "{$language}{$stuTitle}_NOTIFY", |
@@ -1003,7 +1003,7 @@ discard block |
||
| 1003 | 1003 | 'item_name' => "'{$item}'", |
| 1004 | 1004 | 'allow_bookmark' => (string)$allow, |
| 1005 | 1005 | ]; |
| 1006 | - $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
|
| 1006 | + $ret .= $uCodeVNTN->getUserModVersion(4, $table, 'notification', "'{$type}'", $num); |
|
| 1007 | 1007 | |
| 1008 | 1008 | return $ret; |
| 1009 | 1009 | } |
@@ -1029,7 +1029,7 @@ discard block |
||
| 1029 | 1029 | $title = mb_strtoupper($title); |
| 1030 | 1030 | $table = mb_strtoupper($table); |
| 1031 | 1031 | $ucfTitle = ucfirst($title); |
| 1032 | - $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle . ' Notify'); |
|
| 1032 | + $ret = $phpCodeVNCC->getPhpCodeCommentLine($ucfTitle.' Notify'); |
|
| 1033 | 1033 | $event = [ |
| 1034 | 1034 | 'name' => "'{$name}'", |
| 1035 | 1035 | 'category' => "'{$category}'", |
@@ -1040,7 +1040,7 @@ discard block |
||
| 1040 | 1040 | 'mail_template' => "'{$mail}'", |
| 1041 | 1041 | 'mail_subject' => "{$language}{$title}_NOTIFY_SUBJECT", |
| 1042 | 1042 | ]; |
| 1043 | - $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num); |
|
| 1043 | + $ret .= $uCodeVNCC->getUserModVersion(4, $event, 'notification', "'{$type}'", $num); |
|
| 1044 | 1044 | |
| 1045 | 1045 | return $ret; |
| 1046 | 1046 | } |
@@ -1059,14 +1059,14 @@ discard block |
||
| 1059 | 1059 | $moduleDirname = $module->getVar('mod_dirname'); |
| 1060 | 1060 | $language = $this->getLanguage($moduleDirname, 'MI'); |
| 1061 | 1061 | $content = $this->getHeaderFilesComments($module, $filename); |
| 1062 | - $content .= $this->getXoopsVersionHeader($module, $language); |
|
| 1062 | + $content .= $this->getXoopsVersionHeader($module, $language); |
|
| 1063 | 1063 | if (1 == $module->getVar('mod_admin')) { |
| 1064 | 1064 | $content .= $this->getXoopsVersionTemplatesAdmin($moduleDirname, $tables); |
| 1065 | 1065 | } |
| 1066 | 1066 | if (1 == $module->getVar('mod_user')) { |
| 1067 | 1067 | $content .= $this->getXoopsVersionTemplatesUser($moduleDirname, $tables); |
| 1068 | 1068 | } |
| 1069 | - $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables); |
|
| 1069 | + $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables); |
|
| 1070 | 1070 | $tableSearch = []; |
| 1071 | 1071 | $tableComments = []; |
| 1072 | 1072 | $tableSubmenu = []; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 174 | 174 | $ucfTableName = ucfirst($tableName); |
| 175 | 175 | $ret = $pc->getPhpCodeDefined(); |
| 176 | - $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname . $ucfTableName]); |
|
| 176 | + $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname.$ucfTableName]); |
|
| 177 | 177 | $cCl = ''; |
| 178 | 178 | |
| 179 | 179 | $fieldInForm = []; |
@@ -188,9 +188,9 @@ discard block |
||
| 188 | 188 | $rpFieldName = $this->getRightString($fieldName); |
| 189 | 189 | if (in_array(5, $fieldElementId)) { |
| 190 | 190 | if (count($rpFieldName) % 5) { |
| 191 | - $optionsFieldName[] = "'" . $rpFieldName . "'"; |
|
| 191 | + $optionsFieldName[] = "'".$rpFieldName."'"; |
|
| 192 | 192 | } else { |
| 193 | - $optionsFieldName[] = "'" . $rpFieldName . "'\n"; |
|
| 193 | + $optionsFieldName[] = "'".$rpFieldName."'\n"; |
|
| 194 | 194 | } |
| 195 | 195 | } |
| 196 | 196 | if ((0 == $f) && (1 == $table->getVar('table_autoincrement'))) { |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | } |
| 226 | 226 | unset($fieldElementId); |
| 227 | 227 | |
| 228 | - $ret .= $pc->getPhpCodeClass($ucfModuleDirname . $ucfTableName, $cCl, 'XoopsObject'); |
|
| 228 | + $ret .= $pc->getPhpCodeClass($ucfModuleDirname.$ucfTableName, $cCl, 'XoopsObject'); |
|
| 229 | 229 | |
| 230 | 230 | return $ret; |
| 231 | 231 | } |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | $getInsertedId = $xc->getXcEqualsOperator('$newInsertedId', "\$GLOBALS['xoopsDB']->getInsertId()", null, false, "\t\t"); |
| 248 | 248 | $getInsertedId .= $this->getSimpleString('return $newInsertedId;', "\t\t"); |
| 249 | 249 | |
| 250 | - $ret .= $pc->getPhpCodeFunction('getNewInsertedId' . $ucfTableName, '', $getInsertedId, 'public ', false, "\t"); |
|
| 250 | + $ret .= $pc->getPhpCodeFunction('getNewInsertedId'.$ucfTableName, '', $getInsertedId, 'public ', false, "\t"); |
|
| 251 | 251 | |
| 252 | 252 | return $ret; |
| 253 | 253 | } |
@@ -289,13 +289,13 @@ discard block |
||
| 289 | 289 | if (1 != $tableCategory/* && (1 == $tablePermissions)*/) { |
| 290 | 290 | $getForm .= $pc->getPhpCodeCommentLine('Permissions for', 'uploader', "\t\t"); |
| 291 | 291 | $getForm .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_getHandler('groupperm')", null, true, "\t\t"); |
| 292 | - $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object(' . $xUser . ')', $xUser . '->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t"); |
|
| 293 | - $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString, 32, '$groups', $xModule . '->getVar(\'mid\')', true); |
|
| 292 | + $getForm .= $pc->getPhpCodeTernaryOperator('groups', 'is_object('.$xUser.')', $xUser.'->getGroups()', 'XOOPS_GROUP_ANONYMOUS', "\t\t"); |
|
| 293 | + $checkRight = $xc->getXcCheckRight('$gpermHandler', $permString, 32, '$groups', $xModule.'->getVar(\'mid\')', true); |
|
| 294 | 294 | $ternaryOperator = $pc->getPhpCodeTernaryOperator('permissionUpload', $checkRight, 'true', 'false', "\t\t\t"); |
| 295 | 295 | $permissionUpload = $xc->getXcEqualsOperator('$permissionUpload', 'true', null, false, "\t\t\t\t"); |
| 296 | 296 | $ternOperator = $pc->getPhpCodeRemoveCarriageReturn($ternaryOperator, '', "\r"); |
| 297 | - $if = $pc->getPhpCodeConditions('!' . $xUser . '->isAdmin(' . $xModule . '->mid())', '', '', "\t" . $ternaryOperator, $permissionUpload, "\t\t\t"); |
|
| 298 | - $getForm .= $pc->getPhpCodeConditions($xUser, '', '', $if, $ternOperator, "\t\t"); |
|
| 297 | + $if = $pc->getPhpCodeConditions('!'.$xUser.'->isAdmin('.$xModule.'->mid())', '', '', "\t".$ternaryOperator, $permissionUpload, "\t\t\t"); |
|
| 298 | + $getForm .= $pc->getPhpCodeConditions($xUser, '', '', $if, $ternOperator, "\t\t"); |
|
| 299 | 299 | } |
| 300 | 300 | $getForm .= $pc->getPhpCodeCommentLine('Title', '', "\t\t"); |
| 301 | 301 | $getForm .= $pc->getPhpCodeTernaryOperator('title', '$this->isNew()', "sprintf({$language}{$stuTableSoleName}_ADD)", "sprintf({$language}{$stuTableSoleName}_EDIT)", "\t\t"); |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $getForm .= $cc->getClassAddElement('form', "new \XoopsFormButtonTray('', _SUBMIT, 'submit', '', false)"); |
| 318 | 318 | $getForm .= $this->getSimpleString('return $form;', "\t\t"); |
| 319 | 319 | |
| 320 | - $ret .= $pc->getPhpCodeFunction('getForm' . $ucfTableName, '$action = false', $getForm, 'public ', false, "\t"); |
|
| 320 | + $ret .= $pc->getPhpCodeFunction('getForm'.$ucfTableName, '$action = false', $getForm, 'public ', false, "\t"); |
|
| 321 | 321 | |
| 322 | 322 | return $ret; |
| 323 | 323 | } |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Values', '@param null $keys' => '', '@param null $format' => '', '@param null$maxDepth' => '', '@return' => 'array'], "\t"); |
| 393 | 393 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 394 | 394 | $getValues = $xc->getXcGetInstance((string)$moduleDirname, "{$ucfModuleDirname}Helper", "\t\t"); |
| 395 | - $getValues .= $xc->getXcEqualsOperator('$ret', '$this->getValues($keys, $format, $maxDepth)', null, false, "\t\t"); |
|
| 395 | + $getValues .= $xc->getXcEqualsOperator('$ret', '$this->getValues($keys, $format, $maxDepth)', null, false, "\t\t"); |
|
| 396 | 396 | |
| 397 | 397 | foreach (array_keys($fields) as $f) { |
| 398 | 398 | $fieldName = $fields[$f]->getVar('field_name'); |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | } |
| 439 | 439 | $getValues .= $this->getSimpleString('return $ret;', "\t\t"); |
| 440 | 440 | |
| 441 | - $ret .= $pc->getPhpCodeFunction('getValues' . $ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t"); |
|
| 441 | + $ret .= $pc->getPhpCodeFunction('getValues'.$ucfTableName, '$keys = null, $format = null, $maxDepth = null', $getValues, 'public ', false, "\t"); |
|
| 442 | 442 | |
| 443 | 443 | return $ret; |
| 444 | 444 | } |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | $getToArray .= $pc->getPhpCodeForeach('vars', true, false, 'var', $foreach, "\t\t"); |
| 466 | 466 | $getToArray .= $this->getSimpleString('return $ret;', "\t\t"); |
| 467 | 467 | |
| 468 | - $ret .= $pc->getPhpCodeFunction('toArray' . $ucfTableName, '', $getToArray, 'public ', false, "\t"); |
|
| 468 | + $ret .= $pc->getPhpCodeFunction('toArray'.$ucfTableName, '', $getToArray, 'public ', false, "\t"); |
|
| 469 | 469 | |
| 470 | 470 | return $ret; |
| 471 | 471 | } |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | |
| 503 | 503 | $getOptions .= $this->getSimpleString('return $ret;', "\t\t"); |
| 504 | 504 | |
| 505 | - $ret .= $pc->getPhpCodeFunction('getOptions' . $ucfTableName, '', $getOptions, 'public ', false, "\t"); |
|
| 505 | + $ret .= $pc->getPhpCodeFunction('getOptions'.$ucfTableName, '', $getOptions, 'public ', false, "\t"); |
|
| 506 | 506 | |
| 507 | 507 | return $ret; |
| 508 | 508 | } |
@@ -531,8 +531,8 @@ discard block |
||
| 531 | 531 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 532 | 532 | $ucfTableName = ucfirst($tableName); |
| 533 | 533 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 534 | - $ucfModuleTable = $ucfModuleDirname . $ucfTableName; |
|
| 535 | - $multiLineCom = ['Class Object Handler' => $ucfModuleDirname . $ucfTableName]; |
|
| 534 | + $ucfModuleTable = $ucfModuleDirname.$ucfTableName; |
|
| 535 | + $multiLineCom = ['Class Object Handler' => $ucfModuleDirname.$ucfTableName]; |
|
| 536 | 536 | $ret = $pc->getPhpCodeCommentMultiLine($multiLineCom); |
| 537 | 537 | |
| 538 | 538 | $cClh = $pc->getPhpCodeCommentMultiLine(['Constructor' => '', '' => '', '@param' => 'null|XoopsDatabase $db'], "\t"); |
@@ -618,15 +618,15 @@ discard block |
||
| 618 | 618 | $xc = Tdmcreate\Files\CreateXoopsCode::getInstance(); |
| 619 | 619 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 620 | 620 | $ucfTableName = ucfirst($tableName); |
| 621 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 621 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 622 | 622 | |
| 623 | - $critCount = $cc->getClassCriteriaCompo('crCount' . $ucfTableName, "\t\t"); |
|
| 623 | + $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t"); |
|
| 624 | 624 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
| 625 | - $critCount .= $xc->getXcEqualsOperator('$crCount' . $ucfTableName, $paramsCrit, null, false, "\t\t"); |
|
| 625 | + $critCount .= $xc->getXcEqualsOperator('$crCount'.$ucfTableName, $paramsCrit, null, false, "\t\t"); |
|
| 626 | 626 | $critCount .= $this->getSimpleString("return parent::getCount(\$crCount{$ucfTableName});", "\t\t"); |
| 627 | 627 | $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'"; |
| 628 | 628 | |
| 629 | - $ret .= $pc->getPhpCodeFunction('getCount' . $ucfTableName, $params, $critCount, 'public ', false, "\t"); |
|
| 629 | + $ret .= $pc->getPhpCodeFunction('getCount'.$ucfTableName, $params, $critCount, 'public ', false, "\t"); |
|
| 630 | 630 | |
| 631 | 631 | return $ret; |
| 632 | 632 | } |
@@ -646,15 +646,15 @@ discard block |
||
| 646 | 646 | $xc = Tdmcreate\Files\CreateXoopsCode::getInstance(); |
| 647 | 647 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 648 | 648 | $ucfTableName = ucfirst($tableName); |
| 649 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 649 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 650 | 650 | |
| 651 | - $critAll = $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t"); |
|
| 651 | + $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t"); |
|
| 652 | 652 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
| 653 | - $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCrit, null, false, "\t\t"); |
|
| 653 | + $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCrit, null, false, "\t\t"); |
|
| 654 | 654 | $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t"); |
| 655 | 655 | $params = "\$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'"; |
| 656 | 656 | |
| 657 | - $ret .= $pc->getPhpCodeFunction('getAll' . $ucfTableName, $params, $critAll, 'public ', false, "\t"); |
|
| 657 | + $ret .= $pc->getPhpCodeFunction('getAll'.$ucfTableName, $params, $critAll, 'public ', false, "\t"); |
|
| 658 | 658 | |
| 659 | 659 | return $ret; |
| 660 | 660 | } |
@@ -695,19 +695,19 @@ discard block |
||
| 695 | 695 | $param2 = "\$GLOBALS['xoopsUser']->getGroups()"; |
| 696 | 696 | $param3 = "\$GLOBALS['xoopsModule']->getVar('mid')"; |
| 697 | 697 | $critAll .= $xc->getXcGetItemIds($lcfTopicTableName, 'gpermHandler', $param1, $param2, $param3, "\t\t"); |
| 698 | - $critAll .= $cc->getClassCriteriaCompo('crAll' . $ucfTableName, "\t\t"); |
|
| 698 | + $critAll .= $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t"); |
|
| 699 | 699 | |
| 700 | 700 | if (false !== mb_strpos($fieldName, 'status')) { |
| 701 | - $crit = $cc->getClassCriteria('', "'{$fieldName}'", '0', "'!='", true); |
|
| 702 | - $critAll .= $cc->getClassAdd('crAll' . $ucfTableName, $crit, "\t\t"); |
|
| 701 | + $crit = $cc->getClassCriteria('', "'{$fieldName}'", '0', "'!='", true); |
|
| 702 | + $critAll .= $cc->getClassAdd('crAll'.$ucfTableName, $crit, "\t\t"); |
|
| 703 | 703 | } |
| 704 | 704 | $paramsCritAll = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
| 705 | - $critAll .= $xc->getXcEqualsOperator('$crAll' . $ucfTableName, $paramsCritAll, null, false, "\t\t"); |
|
| 705 | + $critAll .= $xc->getXcEqualsOperator('$crAll'.$ucfTableName, $paramsCritAll, null, false, "\t\t"); |
|
| 706 | 706 | |
| 707 | 707 | $critAll .= $this->getSimpleString("return parent::getAll(\$crAll{$ucfTableName});", "\t\t"); |
| 708 | - $params = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'"; |
|
| 708 | + $params = "\${$tableFieldName}Id, \$start = 0, \$limit = 0, \$sort = '{$fieldId} ASC, {$fieldMain}', \$order = 'ASC'"; |
|
| 709 | 709 | |
| 710 | - $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id" . $ucfTableName, $params, $critAll, 'public ', false, "\t"); |
|
| 710 | + $ret .= $pc->getPhpCodeFunction("getAll{$ucfTableName}By{$fieldNameDesc}Id".$ucfTableName, $params, $critAll, 'public ', false, "\t"); |
|
| 711 | 711 | |
| 712 | 712 | return $ret; |
| 713 | 713 | } |
@@ -723,14 +723,14 @@ discard block |
||
| 723 | 723 | $pc = Tdmcreate\Files\CreatePhpCode::getInstance(); |
| 724 | 724 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 725 | 725 | $ucfTableName = ucfirst($tableName); |
| 726 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 726 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 727 | 727 | |
| 728 | 728 | $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order"; |
| 729 | 729 | |
| 730 | - $critSets = $cc->getClassSetStart('cr' . $ucfTableName, 'start', "\t\t"); |
|
| 731 | - $critSets .= $cc->getClassSetLimit('cr' . $ucfTableName, 'limit', "\t\t"); |
|
| 732 | - $critSets .= $cc->getClassSetSort('cr' . $ucfTableName, 'sort', "\t\t"); |
|
| 733 | - $critSets .= $cc->getClassSetOrder('cr' . $ucfTableName, 'order', "\t\t"); |
|
| 730 | + $critSets = $cc->getClassSetStart('cr'.$ucfTableName, 'start', "\t\t"); |
|
| 731 | + $critSets .= $cc->getClassSetLimit('cr'.$ucfTableName, 'limit', "\t\t"); |
|
| 732 | + $critSets .= $cc->getClassSetSort('cr'.$ucfTableName, 'sort', "\t\t"); |
|
| 733 | + $critSets .= $cc->getClassSetOrder('cr'.$ucfTableName, 'order', "\t\t"); |
|
| 734 | 734 | $critSets .= $this->getSimpleString("return \$cr{$ucfTableName};", "\t\t"); |
| 735 | 735 | |
| 736 | 736 | $ret .= $pc->getPhpCodeFunction("get{$ucfTableName}Criteria", $paramsAllCriteria, $critSets, 'private ', false, "\t"); |
@@ -755,9 +755,9 @@ discard block |
||
| 755 | 755 | $tableSoleName = $table->getVar('table_solename'); |
| 756 | 756 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 757 | 757 | $ccTableSoleName = $this->getCamelCase($tableSoleName, true); |
| 758 | - $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 758 | + $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 759 | 759 | $soleName = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, false, "\t\t"); |
| 760 | - $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t"); |
|
| 760 | + $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t"); |
|
| 761 | 761 | |
| 762 | 762 | $contentIf = $xc->getXoopsHandlerLine($moduleDirname, $tableName, "\t\t\t"); |
| 763 | 763 | $contentIf .= $xc->getXcGet($tableName, "\${$tableSoleName}Id", 'Obj', true, false, "\t\t\t"); |
@@ -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,13 +370,13 @@ 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', 'Image ' . $ucfFieldName, $t); |
|
| 373 | + $ret = $pc->getPhpCodeCommentLine('Form', 'Image '.$ucfFieldName, $t); |
|
| 374 | 374 | $ret .= $pc->getPhpCodeCommentLine("Form Image {$ucfFieldName}:", 'Select Uploaded Image ', $t); |
| 375 | - $ret .= $xc->getXcEqualsOperator('$get' . $ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 376 | - $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get' . $ucfFieldName, '$get' . $ucfFieldName, "'blank.gif'", $t); |
|
| 375 | + $ret .= $xc->getXcEqualsOperator('$get'.$ucfFieldName, "\$this->getVar('{$fieldName}')", null, false, $t); |
|
| 376 | + $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$get'.$ucfFieldName, '$get'.$ucfFieldName, "'blank.gif'", $t); |
|
| 377 | 377 | $ret .= $xc->getXcEqualsOperator('$imageDirectory', "'/uploads/{$moduleDirname}/images/{$tableName}'", null, false, $t); |
| 378 | - $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language . 'FORM_UPLOAD', '<br>', $t); |
|
| 379 | - $sprintf = $pc->getPhpCodeSprintf($language . 'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 378 | + $ret .= $cc->getClassXoopsFormElementTray('imageTray', $language.'FORM_UPLOAD', '<br>', $t); |
|
| 379 | + $sprintf = $pc->getPhpCodeSprintf($language.'FORM_IMAGE_PATH', '".{$imageDirectory}/"'); |
|
| 380 | 380 | $ret .= $cc->getClassXoopsFormSelect('imageSelect', $sprintf, $fieldName, $ccFieldName, 5, 'false', false, $t); |
| 381 | 381 | $ret .= $xc->getXcXoopsImgListArray('imageArray', 'XOOPS_ROOT_PATH . $imageDirectory', $t); |
| 382 | 382 | $contForeach = $cc->getClassAddOption('imageSelect', '"{$image1}", $image1', "\t"); |
@@ -389,10 +389,10 @@ discard block |
||
| 389 | 389 | $ret .= $cc->getClassAddElement('imageTray', $xoopsFormLabel, $t); |
| 390 | 390 | $ret .= $pc->getPhpCodeCommentLine("Form Image {$ucfFieldName}:", 'Upload Image', $t); |
| 391 | 391 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 392 | - $xoopsFormFile = $cc->getClassXoopsFormFile('imageTray', $language . 'FORM_UPLOAD_NEW', 'attachedfile', $getConfig, true, ''); |
|
| 393 | - $contIf = $cc->getClassAddElement('imageTray', $xoopsFormFile, $t . "\t"); |
|
| 392 | + $xoopsFormFile = $cc->getClassXoopsFormFile('imageTray', $language.'FORM_UPLOAD_NEW', 'attachedfile', $getConfig, true, ''); |
|
| 393 | + $contIf = $cc->getClassAddElement('imageTray', $xoopsFormFile, $t."\t"); |
|
| 394 | 394 | $formHidden = $cc->getClassXoopsFormHidden('', $fieldName, $ccFieldName, true, true, $t, true); |
| 395 | - $contElse = $cc->getClassAddElement('imageTray', $formHidden, $t . "\t"); |
|
| 395 | + $contElse = $cc->getClassAddElement('imageTray', $formHidden, $t."\t"); |
|
| 396 | 396 | $ret .= $pc->getPhpCodeConditions('$permissionUpload', null, null, $contIf, $contElse, "\t\t"); |
| 397 | 397 | $ret .= $cc->getClassAddElement('form', "\$imageTray{$required}", $t); |
| 398 | 398 | |
@@ -421,12 +421,12 @@ discard block |
||
| 421 | 421 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 422 | 422 | |
| 423 | 423 | $t = "\t\t\t"; |
| 424 | - $ret = $pc->getPhpCodeCommentLine('Form', 'File ' . $ucfFieldName, "\t\t"); |
|
| 425 | - $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', "''", "\$this->getVar('{$fieldName}')", "\t\t"); |
|
| 424 | + $ret = $pc->getPhpCodeCommentLine('Form', 'File '.$ucfFieldName, "\t\t"); |
|
| 425 | + $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', "''", "\$this->getVar('{$fieldName}')", "\t\t"); |
|
| 426 | 426 | |
| 427 | - $uForm = $cc->getClassXoopsFormElementTray('fileUploadTray', $language . 'FORM_UPLOAD', '<br>', $t); |
|
| 428 | - $xoopsFormLabel = $cc->getClassXoopsFormLabel('', $language . 'FORM_UPLOAD_FILE_' . $stuTableName, $ccFieldName, true, "\t\t", true); |
|
| 429 | - $condIf = $cc->getClassAddElement('fileUploadTray', $xoopsFormLabel, $t . "\t"); |
|
| 427 | + $uForm = $cc->getClassXoopsFormElementTray('fileUploadTray', $language.'FORM_UPLOAD', '<br>', $t); |
|
| 428 | + $xoopsFormLabel = $cc->getClassXoopsFormLabel('', $language.'FORM_UPLOAD_FILE_'.$stuTableName, $ccFieldName, true, "\t\t", true); |
|
| 429 | + $condIf = $cc->getClassAddElement('fileUploadTray', $xoopsFormLabel, $t."\t"); |
|
| 430 | 430 | $uForm .= $pc->getPhpCodeConditions('!$this->isNew()', null, null, $condIf, false, "\t\t\t"); |
| 431 | 431 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 432 | 432 | $xoopsFormFile = $cc->getClassXoopsFormFile('', "''", $fieldName, $getConfig, true, ''); |
@@ -458,10 +458,10 @@ discard block |
||
| 458 | 458 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 459 | 459 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 460 | 460 | $t = "\t\t"; |
| 461 | - $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker ' . $ucfFieldName, $t); |
|
| 461 | + $ret = $pc->getPhpCodeCommentLine('Form Color', 'Picker '.$ucfFieldName, $t); |
|
| 462 | 462 | $getVar = $xc->getXcGetVar('', 'this', $fieldName, true); |
| 463 | 463 | $xoopsFormFile = $cc->getClassXoopsFormColorPicker('', $language, $fieldName, $getVar, true, ''); |
| 464 | - $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
|
| 464 | + $ret .= $cc->getClassAddElement('form', $xoopsFormFile, $t); |
|
| 465 | 465 | |
| 466 | 466 | return $ret; |
| 467 | 467 | } |
@@ -488,10 +488,10 @@ discard block |
||
| 488 | 488 | $t = "\t\t"; |
| 489 | 489 | $ret = $pc->getPhpCodeCommentLine($ucfTableName, 'handler', $t); |
| 490 | 490 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $tableName, $t); |
| 491 | - $ret .= $pc->getPhpCodeCommentLine('Form', 'Select ' . $ucfTableName, $t); |
|
| 492 | - $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 493 | - $ret .= $cc->getClassAddOption($ccFieldName . 'Select', "'Empty'", $t); |
|
| 494 | - $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$tableName}Handler->getList()", $t); |
|
| 491 | + $ret .= $pc->getPhpCodeCommentLine('Form', 'Select '.$ucfTableName, $t); |
|
| 492 | + $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 493 | + $ret .= $cc->getClassAddOption($ccFieldName.'Select', "'Empty'", $t); |
|
| 494 | + $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$tableName}Handler->getList()", $t); |
|
| 495 | 495 | $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t); |
| 496 | 496 | |
| 497 | 497 | return $ret; |
@@ -514,10 +514,10 @@ discard block |
||
| 514 | 514 | $cc = Tdmcreate\Files\Classes\ClassXoopsCode::getInstance(); |
| 515 | 515 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 516 | 516 | $t = "\t\t"; |
| 517 | - $ret = $pc->getPhpCodeCommentLine('Form Select', 'User ' . $ucfFieldName, $t); |
|
| 517 | + $ret = $pc->getPhpCodeCommentLine('Form Select', 'User '.$ucfFieldName, $t); |
|
| 518 | 518 | $getConfig = $xc->getXcGetConfig($moduleDirname, 'maxsize'); |
| 519 | 519 | $xoopsSelectUser = $cc->getClassXoopsFormSelectUser('', $language, $fieldName, 'false', $fieldName, true, $t); |
| 520 | - $ret .= $cc->getClassAddElement('form', $xoopsSelectUser . $required, $t); |
|
| 520 | + $ret .= $cc->getClassAddElement('form', $xoopsSelectUser.$required, $t); |
|
| 521 | 521 | |
| 522 | 522 | return $ret; |
| 523 | 523 | } |
@@ -539,10 +539,10 @@ discard block |
||
| 539 | 539 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 540 | 540 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 541 | 541 | $t = "\t\t"; |
| 542 | - $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No ' . $ucfFieldName, $t); |
|
| 542 | + $ret = $pc->getPhpCodeCommentLine('Form Radio', 'Yes/No '.$ucfFieldName, $t); |
|
| 543 | 543 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 544 | 544 | $xoopsRadioYN = $cc->getClassXoopsFormRadioYN('', $language, $fieldName, $ccFieldName, true, $t); |
| 545 | - $ret .= $cc->getClassAddElement('form', $xoopsRadioYN . $required, $t); |
|
| 545 | + $ret .= $cc->getClassAddElement('form', $xoopsRadioYN.$required, $t); |
|
| 546 | 546 | |
| 547 | 547 | return $ret; |
| 548 | 548 | } |
@@ -564,10 +564,10 @@ discard block |
||
| 564 | 564 | $t = "\t\t"; |
| 565 | 565 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 566 | 566 | $ucfFieldName = $tf->getCamelCase($fieldName, true); |
| 567 | - $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select ' . $ucfFieldName, $t); |
|
| 567 | + $ret = $pc->getPhpCodeCommentLine('Form Text', 'Date Select '.$ucfFieldName, $t); |
|
| 568 | 568 | $ret .= $pc->getPhpCodeTernaryOperator($ccFieldName, '$this->isNew()', 0, "\$this->getVar('{$fieldName}')", $t); |
| 569 | 569 | $xoopsTextDateSelect = $cc->getClassXoopsFormTextDateSelect('', $language, $fieldName, $fieldName, $ccFieldName, true, $t); |
| 570 | - $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect . $required, $t); |
|
| 570 | + $ret .= $cc->getClassAddElement('form', $xoopsTextDateSelect.$required, $t); |
|
| 571 | 571 | |
| 572 | 572 | return $ret; |
| 573 | 573 | } |
@@ -599,8 +599,8 @@ discard block |
||
| 599 | 599 | $ret = $pc->getPhpCodeCommentLine('Form Table', $rpFieldelementName, $t); |
| 600 | 600 | $ccFieldName = $tf->getCamelCase($fieldName, false, true); |
| 601 | 601 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $rpFieldelementName, $t); |
| 602 | - $ret .= $cc->getClassXoopsFormSelect($ccFieldName . 'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 603 | - $ret .= $cc->getClassAddOptionArray($ccFieldName . 'Select', "\${$rpFieldelementName}Handler->getList()", $t); |
|
| 602 | + $ret .= $cc->getClassXoopsFormSelect($ccFieldName.'Select', $language, $fieldName, "this->getVar('{$fieldName}')", null, '', false, $t); |
|
| 603 | + $ret .= $cc->getClassAddOptionArray($ccFieldName.'Select', "\${$rpFieldelementName}Handler->getList()", $t); |
|
| 604 | 604 | $ret .= $cc->getClassAddElement('form', "\${$ccFieldName}Select{$required}", $t); |
| 605 | 605 | } |
| 606 | 606 | |
@@ -632,13 +632,13 @@ discard block |
||
| 632 | 632 | $ret = $pc->getPhpCodeCommentLine('Form Table', $ucfTopicTableName, $t); |
| 633 | 633 | $ret .= $xc->getXoopsHandlerLine($moduleDirname, $stlTopicTableName, $t); |
| 634 | 634 | $ret .= $cc->getClassCriteriaCompo('criteria', $t); |
| 635 | - $ret .= $xc->getXcClearHandlerCount($stlTopicTableName . 'Count', $stlTopicTableName, '$criteria', $t); |
|
| 636 | - $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t . "\t"); |
|
| 637 | - $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName . 'All', $stlTopicTableName, '$criteria', $t . "\t"); |
|
| 638 | - $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName . 'Tree', $stlTopicTableName . 'All', $fieldId, $fieldPid, $t . "\t"); |
|
| 639 | - $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName . 'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t . "\t"); |
|
| 640 | - $formLabel = $cc->getClassXoopsFormLabel('', $language, "\${$ccFieldPid}", true, ''); |
|
| 641 | - $contIf .= $cc->getClassAddElement('form', $formLabel, $t . "\t"); |
|
| 635 | + $ret .= $xc->getXcClearHandlerCount($stlTopicTableName.'Count', $stlTopicTableName, '$criteria', $t); |
|
| 636 | + $contIf = $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/tree', true, false, 'include', $t."\t"); |
|
| 637 | + $contIf .= $xc->getXcClearHandlerAll($stlTopicTableName.'All', $stlTopicTableName, '$criteria', $t."\t"); |
|
| 638 | + $contIf .= $cc->getClassXoopsObjectTree($stlTopicTableName.'Tree', $stlTopicTableName.'All', $fieldId, $fieldPid, $t."\t"); |
|
| 639 | + $contIf .= $cc->getClassXoopsMakeSelBox($ccFieldPid, $stlTopicTableName.'Tree', $fieldPid, $fieldMain, '--', $fieldPid, $t."\t"); |
|
| 640 | + $formLabel = $cc->getClassXoopsFormLabel('', $language, "\${$ccFieldPid}", true, ''); |
|
| 641 | + $contIf .= $cc->getClassAddElement('form', $formLabel, $t."\t"); |
|
| 642 | 642 | $ret .= $pc->getPhpCodeConditions("\${$stlTopicTableName}Count", null, null, $contIf, false, $t); |
| 643 | 643 | $ret .= $pc->getPhpCodeUnset('criteria', $t); |
| 644 | 644 | |
@@ -663,11 +663,11 @@ discard block |
||
| 663 | 663 | $ret = $pc->getPhpCodeCommentLine('Use tag', 'module', $t); |
| 664 | 664 | $isDir = $pc->getPhpCodeIsDir("XOOPS_ROOT_PATH . '/modules/tag'"); |
| 665 | 665 | $ret .= $pc->getPhpCodeTernaryOperator('dirTag', $isDir, 'true', 'false', $t); |
| 666 | - $paramIf = '(' . $xc->getXcGetConfig($moduleDirname, 'usetag') . ' == 1)'; |
|
| 667 | - $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t . "\t"); |
|
| 668 | - $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t . "\t"); |
|
| 666 | + $paramIf = '('.$xc->getXcGetConfig($moduleDirname, 'usetag').' == 1)'; |
|
| 667 | + $condIf = $pc->getPhpCodeTernaryOperator('tagId', '$this->isNew()', '0', "\$this->getVar('{$fieldId}')", $t."\t"); |
|
| 668 | + $condIf .= $pc->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'modules/tag/include/formtag', true, false, $type = 'include', $t."\t"); |
|
| 669 | 669 | $paramElem = $cc->getClassXoopsFormTag('', 'tag', 60, 255, 'tagId', 0, true, ''); |
| 670 | - $condIf .= $cc->getClassAddElement('form', $paramElem . $required, $t . "\t"); |
|
| 670 | + $condIf .= $cc->getClassAddElement('form', $paramElem.$required, $t."\t"); |
|
| 671 | 671 | $ret .= $pc->getPhpCodeConditions($paramIf, ' && ', '$dirTag', $condIf, false, $t); |
| 672 | 672 | |
| 673 | 673 | return $ret; |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | $fieldId = $fieldName; |
| 708 | 708 | } |
| 709 | 709 | $rpFieldName = $tf->getRightString($fieldName); |
| 710 | - $language = $languageFunct . mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 710 | + $language = $languageFunct.mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 711 | 711 | $required = (1 == $fields[$f]->getVar('field_required')) ? ', true' : ''; |
| 712 | 712 | |
| 713 | 713 | $fieldElements = $tc->getHandler('fieldelements')->get($fieldElement); |
@@ -75,8 +75,8 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '') |
| 77 | 77 | { |
| 78 | - $params = ('' != $param2) ? ', ' . $param2 : ''; |
|
| 79 | - $params .= ('' != $param3) ? ', ' . $param3 : ''; |
|
| 78 | + $params = ('' != $param2) ? ', '.$param2 : ''; |
|
| 79 | + $params .= ('' != $param3) ? ', '.$param3 : ''; |
|
| 80 | 80 | |
| 81 | 81 | if (false === $isParam) { |
| 82 | 82 | $ret = "{$t}\${$var} = new \Criteria( {$param1}{$params} );\n"; |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | */ |
| 280 | 280 | public function getClassXoopsFormLabel($var, $param1 = '', $param2 = null, $isParam = false, $t = "\t\t", $useParam = false) |
| 281 | 281 | { |
| 282 | - $label = 'new \XoopsFormLabel('; |
|
| 282 | + $label = 'new \XoopsFormLabel('; |
|
| 283 | 283 | if (false === $useParam) { |
| 284 | 284 | $params = null != $param2 ? "{$param1}, {$param2}" : $param1; |
| 285 | 285 | } else { |