@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * @public function render |
| 166 | 166 | * @param null |
| 167 | 167 | * |
| 168 | - * @return bool|string |
|
| 168 | + * @return null|string |
|
| 169 | 169 | */ |
| 170 | 170 | public function render() |
| 171 | 171 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | * @public function getXcEqualsOperator |
| 67 | 67 | * @param $var |
| 68 | 68 | * @param $value |
| 69 | - * @param $interlock |
|
| 69 | + * @param boolean|string $interlock |
|
| 70 | 70 | * @param $ref |
| 71 | 71 | * @param $t - Indentation |
| 72 | 72 | * |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * @public function getXcLoadLanguage |
| 120 | 120 | * |
| 121 | - * @param $lang |
|
| 121 | + * @param string $lang |
|
| 122 | 122 | * @param $t |
| 123 | 123 | * @param $domain |
| 124 | 124 | * |
@@ -135,9 +135,9 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | 137 | * @public function getXcAnchorFunction |
| 138 | - * @param $anchor |
|
| 139 | - * @param $name |
|
| 140 | - * @param $vars |
|
| 138 | + * @param string $anchor |
|
| 139 | + * @param string $name |
|
| 140 | + * @param string $vars |
|
| 141 | 141 | * @param $close |
| 142 | 142 | * |
| 143 | 143 | * @return string |
@@ -219,8 +219,8 @@ discard block |
||
| 219 | 219 | * @param string $var |
| 220 | 220 | * @param string $anchor |
| 221 | 221 | * @param $param1 |
| 222 | - * @param $param2 |
|
| 223 | - * @param $param3 |
|
| 222 | + * @param string $param2 |
|
| 223 | + * @param string $param3 |
|
| 224 | 224 | * @param string $t |
| 225 | 225 | * @return string |
| 226 | 226 | */ |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | * @param string $var |
| 235 | 235 | * @param string $anchor |
| 236 | 236 | * @param $param1 |
| 237 | - * @param $param2 |
|
| 238 | - * @param $param3 |
|
| 237 | + * @param string $param2 |
|
| 238 | + * @param string $param3 |
|
| 239 | 239 | * @param string $t |
| 240 | 240 | * @return string |
| 241 | 241 | */ |
@@ -278,8 +278,8 @@ discard block |
||
| 278 | 278 | |
| 279 | 279 | /** |
| 280 | 280 | * @public function getXcMediaUploader |
| 281 | - * @param $var |
|
| 282 | - * @param $dirPath |
|
| 281 | + * @param string $var |
|
| 282 | + * @param string $dirPath |
|
| 283 | 283 | * @param $moduleDirname |
| 284 | 284 | * @param $t |
| 285 | 285 | * @return string |
@@ -319,8 +319,8 @@ discard block |
||
| 319 | 319 | |
| 320 | 320 | /** |
| 321 | 321 | * @public function getXcXoopsImgListArray |
| 322 | - * @param $return |
|
| 323 | - * @param $var |
|
| 322 | + * @param string $return |
|
| 323 | + * @param string $var |
|
| 324 | 324 | * @param $t |
| 325 | 325 | * |
| 326 | 326 | * @return string |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | /** |
| 334 | 334 | * @public function getXcGetConfig |
| 335 | 335 | * @param $moduleDirname |
| 336 | - * @param $name |
|
| 336 | + * @param string $name |
|
| 337 | 337 | * @return string |
| 338 | 338 | */ |
| 339 | 339 | public function getXcGetConfig($moduleDirname, $name) |
@@ -856,11 +856,11 @@ discard block |
||
| 856 | 856 | /** |
| 857 | 857 | * @public function getXcGetInfo |
| 858 | 858 | * |
| 859 | - * @param $left |
|
| 860 | - * @param $string |
|
| 859 | + * @param string string |
|
| 860 | + * @param string $string |
|
| 861 | 861 | * @param bool $isParam |
| 862 | 862 | * |
| 863 | - * @param string $t |
|
| 863 | + * @param string string |
|
| 864 | 864 | * @return string |
| 865 | 865 | */ |
| 866 | 866 | public function getXcGetInfo($left, $string, $isParam = false, $t = '') |
@@ -877,7 +877,7 @@ discard block |
||
| 877 | 877 | /** |
| 878 | 878 | * @public function getXcAddRight |
| 879 | 879 | * |
| 880 | - * @param $anchor |
|
| 880 | + * @param string $anchor |
|
| 881 | 881 | * @param string $permString |
| 882 | 882 | * @param string $var |
| 883 | 883 | * @param string $groups |
@@ -901,7 +901,7 @@ discard block |
||
| 901 | 901 | /** |
| 902 | 902 | * @public function getXcCheckRight |
| 903 | 903 | * |
| 904 | - * @param $anchor |
|
| 904 | + * @param string $anchor |
|
| 905 | 905 | * @param string $permString |
| 906 | 906 | * @param string $var |
| 907 | 907 | * @param string $groups |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | |
| 954 | 954 | /** |
| 955 | 955 | * @public function getXcClearCount |
| 956 | - * @param $left |
|
| 956 | + * @param string $left |
|
| 957 | 957 | * @param $anchor |
| 958 | 958 | * @param $params |
| 959 | 959 | * @param $t |
@@ -990,7 +990,7 @@ discard block |
||
| 990 | 990 | |
| 991 | 991 | /** |
| 992 | 992 | * @public function getXcClearHandlerAll |
| 993 | - * @param $left |
|
| 993 | + * @param string $left |
|
| 994 | 994 | * @param string $anchor |
| 995 | 995 | * @param string $params |
| 996 | 996 | * @param string $t |
@@ -1116,7 +1116,7 @@ discard block |
||
| 1116 | 1116 | /** |
| 1117 | 1117 | * @public function getXcRedirectHeader |
| 1118 | 1118 | * @param $directory |
| 1119 | - * @param $options |
|
| 1119 | + * @param string $options |
|
| 1120 | 1120 | * @param $numb |
| 1121 | 1121 | * @param $var |
| 1122 | 1122 | * @param bool $isString |
@@ -1218,7 +1218,7 @@ discard block |
||
| 1218 | 1218 | /** |
| 1219 | 1219 | * @public function getXcObjHandlerCount |
| 1220 | 1220 | * |
| 1221 | - * @param $left |
|
| 1221 | + * @param string $left |
|
| 1222 | 1222 | * @param $tableName |
| 1223 | 1223 | * @param string $obj |
| 1224 | 1224 | * |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | $pTopic = TDMCreatePhpCode::getInstance(); |
| 475 | 475 | $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 476 | 476 | $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 477 | - $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t); |
|
| 477 | + $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t); |
|
| 478 | 478 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 479 | 479 | |
| 480 | 480 | return $ret; |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | { |
| 497 | 497 | $pParentTopic = TDMCreatePhpCode::getInstance(); |
| 498 | 498 | $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t"); |
| 499 | - $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t"); |
|
| 499 | + $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t"); |
|
| 500 | 500 | $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS'); |
| 501 | 501 | $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups); |
| 502 | 502 | $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t); |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | $pVarFromID = TDMCreatePhpCode::getInstance(); |
| 520 | 520 | $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t); |
| 521 | 521 | $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, ''); |
| 522 | - $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID); |
|
| 522 | + $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID); |
|
| 523 | 523 | $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t); |
| 524 | 524 | |
| 525 | 525 | return $ret; |
@@ -849,7 +849,7 @@ discard block |
||
| 849 | 849 | if ($usedoublequotes) { |
| 850 | 850 | return "{$t}\$GLOBALS['xoopsTpl']->display(\"db:{$displayTpl}\");\n"; |
| 851 | 851 | } else { |
| 852 | - return "{$t}\$GLOBALS['xoopsTpl']->display('db:" . $displayTpl . "');\n"; |
|
| 852 | + return "{$t}\$GLOBALS['xoopsTpl']->display('db:".$displayTpl."');\n"; |
|
| 853 | 853 | } |
| 854 | 854 | } |
| 855 | 855 | |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | $phpCodeSecurity = TDMCreatePhpCode::getInstance(); |
| 1092 | 1092 | $securityError = $this->getXcSecurityErrors(); |
| 1093 | 1093 | $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError); |
| 1094 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1094 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1095 | 1095 | $securityCheck = $this->getXcSecurityCheck(); |
| 1096 | 1096 | |
| 1097 | 1097 | return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t); |
@@ -1107,7 +1107,7 @@ discard block |
||
| 1107 | 1107 | public function getXcInsertData($tableName, $language, $t = '') |
| 1108 | 1108 | { |
| 1109 | 1109 | $phpCodeInsertData = TDMCreatePhpCode::getInstance(); |
| 1110 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1110 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1111 | 1111 | $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj'); |
| 1112 | 1112 | |
| 1113 | 1113 | return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t); |
@@ -1154,7 +1154,7 @@ discard block |
||
| 1154 | 1154 | $phpXoopsConfirm = TDMCreatePhpCode::getInstance(); |
| 1155 | 1155 | $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')"; |
| 1156 | 1156 | $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER'); |
| 1157 | - $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, ''); |
|
| 1157 | + $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, ''); |
|
| 1158 | 1158 | $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar); |
| 1159 | 1159 | $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n"; |
| 1160 | 1160 | |
@@ -1328,7 +1328,7 @@ discard block |
||
| 1328 | 1328 | { |
| 1329 | 1329 | $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 1330 | 1330 | $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 1331 | - $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t); |
|
| 1331 | + $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t); |
|
| 1332 | 1332 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 1333 | 1333 | |
| 1334 | 1334 | return $ret; |
@@ -1416,18 +1416,18 @@ discard block |
||
| 1416 | 1416 | $fieldMain = $fieldName; |
| 1417 | 1417 | } |
| 1418 | 1418 | if ((5 == $fieldElement) || (6 == $fieldElement)) { |
| 1419 | - $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1419 | + $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1420 | 1420 | } elseif (13 == $fieldElement) { |
| 1421 | 1421 | $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain); |
| 1422 | 1422 | } elseif (14 == $fieldElement) { |
| 1423 | 1423 | $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName); |
| 1424 | 1424 | } elseif (15 == $fieldElement) { |
| 1425 | - $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1425 | + $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1426 | 1426 | } else { |
| 1427 | 1427 | if ((0 != $f) && 1 == $tableAutoincrement) { |
| 1428 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1428 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1429 | 1429 | } elseif ((0 == $f) && 0 == $tableAutoincrement) { |
| 1430 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1430 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1431 | 1431 | } |
| 1432 | 1432 | } |
| 1433 | 1433 | } |
@@ -1449,7 +1449,7 @@ discard block |
||
| 1449 | 1449 | $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t); |
| 1450 | 1450 | $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t"); |
| 1451 | 1451 | $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t"); |
| 1452 | - $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t"); |
|
| 1452 | + $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t"); |
|
| 1453 | 1453 | $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t); |
| 1454 | 1454 | |
| 1455 | 1455 | return $ret; |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | $ret .= $this->phpcode->getPhpCodeCommentLine('Pdf Filename'); |
| 207 | 207 | $ret .= $this->phpcode->getPhpCodeCommentLine('Output'); |
| 208 | 208 | $ret .= $this->xc->getXcTplAssign('pdfoutput', "\$pdf->Output('{$tableName}.pdf', 'I')"); |
| 209 | - $ret .= $this->xc->getXcTplDisplay($moduleDirname . "_pdf.tpl", '', false); |
|
| 209 | + $ret .= $this->xc->getXcTplDisplay($moduleDirname."_pdf.tpl", '', false); |
|
| 210 | 210 | |
| 211 | 211 | return $ret; |
| 212 | 212 | } |
@@ -28,14 +28,14 @@ discard block |
||
| 28 | 28 | class LanguageDefines |
| 29 | 29 | { |
| 30 | 30 | /** |
| 31 | - * @var mixed |
|
| 32 | - */ |
|
| 31 | + * @var mixed |
|
| 32 | + */ |
|
| 33 | 33 | protected $defines; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @public function constructor |
|
| 37 | - * @param null |
|
| 38 | - */ |
|
| 36 | + * @public function constructor |
|
| 37 | + * @param null |
|
| 38 | + */ |
|
| 39 | 39 | |
| 40 | 40 | public function __construct() |
| 41 | 41 | { |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * @static function getInstance |
|
| 47 | - * @param null |
|
| 46 | + * @static function getInstance |
|
| 47 | + * @param null |
|
| 48 | 48 | * @return LanguageDefines |
| 49 | 49 | */ |
| 50 | 50 | public static function getInstance() |
@@ -58,33 +58,33 @@ discard block |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @public function getAboveHeadDefines |
|
| 62 | - * @param string $string |
|
| 63 | - * @return string |
|
| 64 | - */ |
|
| 61 | + * @public function getAboveHeadDefines |
|
| 62 | + * @param string $string |
|
| 63 | + * @return string |
|
| 64 | + */ |
|
| 65 | 65 | public function getAboveHeadDefines($string) |
| 66 | 66 | { |
| 67 | 67 | return "// ---------------- {$string} ----------------\n"; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @public function getAboveDefines |
|
| 72 | - * @param string $string |
|
| 73 | - * @return string |
|
| 74 | - */ |
|
| 71 | + * @public function getAboveDefines |
|
| 72 | + * @param string $string |
|
| 73 | + * @return string |
|
| 74 | + */ |
|
| 75 | 75 | public function getAboveDefines($string) |
| 76 | 76 | { |
| 77 | 77 | return "// {$string}\n"; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @public function getDefine |
|
| 82 | - * @param string $language |
|
| 83 | - * @param string $defined |
|
| 84 | - * @param string $description |
|
| 85 | - * @param bool $usedoubleqoute |
|
| 86 | - * @return string |
|
| 87 | - */ |
|
| 81 | + * @public function getDefine |
|
| 82 | + * @param string $language |
|
| 83 | + * @param string $defined |
|
| 84 | + * @param string $description |
|
| 85 | + * @param bool $usedoubleqoute |
|
| 86 | + * @return string |
|
| 87 | + */ |
|
| 88 | 88 | public function getDefine($language, $defined, $description, $usedoubleqoute = false) |
| 89 | 89 | { |
| 90 | 90 | $defined = strtoupper($defined); |
@@ -98,8 +98,8 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @public function getBelowDefines |
|
| 102 | - * @param string $string |
|
| 101 | + * @public function getBelowDefines |
|
| 102 | + * @param string $string |
|
| 103 | 103 | * |
| 104 | 104 | * @return string |
| 105 | 105 | */ |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | if ($usedoubleqoute) { |
| 93 | 93 | $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "\"{$description}\""); |
| 94 | 94 | } else { |
| 95 | - $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'" . $description . "'"); |
|
| 95 | + $ret = $this->phpcode->getPhpCodeDefine("{$language}{$defined}", "'".$description."'"); |
|
| 96 | 96 | } |
| 97 | 97 | return $ret; |
| 98 | 98 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $ucfModuleDirname = ucfirst($moduleDirname); |
| 170 | 170 | $ucfTableName = ucfirst($tableName); |
| 171 | 171 | $ret = $pc->getPhpCodeDefined(); |
| 172 | - $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname . $ucfTableName]); |
|
| 172 | + $ret .= $pc->getPhpCodeCommentMultiLine(['Class Object' => $ucfModuleDirname.$ucfTableName]); |
|
| 173 | 173 | $cCl = ''; |
| 174 | 174 | |
| 175 | 175 | $fieldInForm = []; |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | $ucfTableName = ucfirst($tableName); |
| 528 | 528 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 529 | 529 | $ucfModuleTable = $ucfModuleDirname.$ucfTableName; |
| 530 | - $multiLineCom = ['Class Object Handler' => $ucfModuleDirname . $ucfTableName]; |
|
| 530 | + $multiLineCom = ['Class Object Handler' => $ucfModuleDirname.$ucfTableName]; |
|
| 531 | 531 | $ret = $pc->getPhpCodeCommentMultiLine($multiLineCom); |
| 532 | 532 | |
| 533 | 533 | $cClh = $pc->getPhpCodeCommentMultiLine(['Constructor' => '', '' => '', '@param' => 'null|XoopsDatabase $db'], "\t"); |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | $xc = TDMCreateXoopsCode::getInstance(); |
| 614 | 614 | $cc = ClassXoopsCode::getInstance(); |
| 615 | 615 | $ucfTableName = ucfirst($tableName); |
| 616 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get Count ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 616 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get Count '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 617 | 617 | |
| 618 | 618 | $critCount = $cc->getClassCriteriaCompo('crCount'.$ucfTableName, "\t\t"); |
| 619 | 619 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crCount{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | $xc = TDMCreateXoopsCode::getInstance(); |
| 642 | 642 | $cc = ClassXoopsCode::getInstance(); |
| 643 | 643 | $ucfTableName = ucfirst($tableName); |
| 644 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get All ' . $ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 644 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get All '.$ucfTableName => 'in the database', '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'array'], "\t"); |
|
| 645 | 645 | |
| 646 | 646 | $critAll = $cc->getClassCriteriaCompo('crAll'.$ucfTableName, "\t\t"); |
| 647 | 647 | $paramsCrit = "\$this->get{$ucfTableName}Criteria(\$crAll{$ucfTableName}, \$start, \$limit, \$sort, \$order)"; |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $pc = TDMCreatePhpCode::getInstance(); |
| 719 | 719 | $cc = ClassXoopsCode::getInstance(); |
| 720 | 720 | $ucfTableName = ucfirst($tableName); |
| 721 | - $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria ' . $ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 721 | + $ret = $pc->getPhpCodeCommentMultiLine(['Get' => 'Criteria '.$ucfTableName, '@param ' => "\$cr{$ucfTableName}", '@param int $start' => '', '@param int $limit' => '', '@param string $sort' => '', '@param string $order' => '', '@return' => 'int'], "\t"); |
|
| 722 | 722 | |
| 723 | 723 | $paramsAllCriteria = "\$cr{$ucfTableName}, \$start, \$limit, \$sort, \$order"; |
| 724 | 724 | |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | $tableSoleName = $table->getVar('table_solename'); |
| 751 | 751 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 752 | 752 | $ccTableSoleName = $this->getCamelCase($tableSoleName, true); |
| 753 | - $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName . ' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 753 | + $ret = $pc->getPhpCodeCommentMultiLine(['Returns the' => $ucfTableSoleName.' from id', '' => '', '@return' => 'string'], "\t"); |
|
| 754 | 754 | $soleName = $xc->getXcEqualsOperator("\${$tableSoleName}Id", "(int)( \${$tableSoleName}Id )", null, false, "\t\t"); |
| 755 | 755 | $soleName .= $xc->getXcEqualsOperator("\${$tableSoleName}", "''", null, false, "\t\t"); |
| 756 | 756 | |
@@ -78,12 +78,12 @@ |
||
| 78 | 78 | $language = $this->getLanguage($moduleDirname, 'AM'); |
| 79 | 79 | |
| 80 | 80 | $singleNoVar = $hc->getSmartyNoSimbol('xoModuleIcons32 xoopsmicrobutton.gif'); |
| 81 | - $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true) . PHP_EOL; |
|
| 82 | - $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img) . PHP_EOL; |
|
| 83 | - $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor) . PHP_EOL; |
|
| 81 | + $img = $hc->getHtmlTag('img', ['src' => $singleNoVar, 'alt' => 'XOOPS'], '', true).PHP_EOL; |
|
| 82 | + $anchor = $hc->getHtmlTag('a', ['href' => 'https://xoops.org/', 'title' => 'Visit XOOPS', 'target' => '_blank'], $img).PHP_EOL; |
|
| 83 | + $content = $hc->getHtmlTag('div', ['class' => 'center'], $anchor).PHP_EOL; |
|
| 84 | 84 | $tree = $hc->getHtmlTag('strong', [], $moduleName); |
| 85 | 85 | $tree .= $hc->getSmartyConst($language, 'MAINTAINEDBY').PHP_EOL; |
| 86 | - $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit ' . $supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 86 | + $tree .= $hc->getHtmlTag('a', ['href' => '<{$maintainedby}>', 'title' => 'Visit '.$supportName, 'class' => 'tooltip', 'rel' => 'external'], $supportName); |
|
| 87 | 87 | $content .= $hc->getHtmlTag('div', ['class' => 'center smallsmall italic pad5'], $tree); |
| 88 | 88 | |
| 89 | 89 | $this->create($moduleDirname, 'templates/admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
@@ -81,11 +81,11 @@ discard block |
||
| 81 | 81 | $fieldName = $fields[$f]->getVar('field_name'); |
| 82 | 82 | $stuFieldName = strtoupper($fieldName); |
| 83 | 83 | $lang = $hc->getSmartyConst($language, $stuFieldName); |
| 84 | - $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL; |
|
| 84 | + $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL; |
|
| 85 | 85 | } |
| 86 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 86 | + $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL; |
|
| 87 | 87 | |
| 88 | - return $hc->getHtmlTableThead($tr) . PHP_EOL; |
|
| 88 | + return $hc->getHtmlTableThead($tr).PHP_EOL; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $td = ''; |
| 106 | 106 | if (1 == $tableAutoincrement) { |
| 107 | 107 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 108 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 108 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 109 | 109 | } |
| 110 | 110 | $fields = $this->getTableFields($tableMid, $tableId); |
| 111 | 111 | foreach (array_keys($fields) as $f) { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">... |
| 124 | 124 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 125 | 125 | $span = $hc->getHtmlTag('span', [], $double); |
| 126 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span) . PHP_EOL; |
|
| 126 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $span).PHP_EOL; |
|
| 127 | 127 | /*$ret .= <<<EOT |
| 128 | 128 | <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;"> </span></td>\n |
| 129 | 129 | EOT;*/ |
@@ -132,18 +132,18 @@ discard block |
||
| 132 | 132 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32'); |
| 133 | 133 | $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 134 | 134 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 135 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 135 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 136 | 136 | break; |
| 137 | 137 | case 13: |
| 138 | - $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 138 | + $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 139 | 139 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 140 | - $img = $hc->getHtmlTag('img', ['src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName], '', true); |
|
| 141 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img) . PHP_EOL; |
|
| 140 | + $img = $hc->getHtmlTag('img', ['src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName], '', true); |
|
| 141 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $img).PHP_EOL; |
|
| 142 | 142 | break; |
| 143 | 143 | default: |
| 144 | 144 | if (0 != $f) { |
| 145 | 145 | $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 146 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double) . PHP_EOL; |
|
| 146 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], $double).PHP_EOL; |
|
| 147 | 147 | } |
| 148 | 148 | break; |
| 149 | 149 | } |
@@ -153,19 +153,19 @@ discard block |
||
| 153 | 153 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 154 | 154 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png'); |
| 155 | 155 | $img = $hc->getHtmlTag('img', ['src' => $src, 'alt' => $tableName], '', true); |
| 156 | - $anchor = $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=edit&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 156 | + $anchor = $hc->getHtmlTag('a', ['href' => $tableName.".php?op=edit&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 157 | 157 | $lang = $hc->getSmartyConst('', '_DELETE'); |
| 158 | 158 | $double = $hc->getSmartyDoubleVar($tableSoleName, 'id'); |
| 159 | 159 | $src = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png'); |
| 160 | - $img = $hc->getHtmlTag('img', ['src' => $src . $double, 'alt' => $tableName], '', true); |
|
| 161 | - $anchor .= $hc->getHtmlTag('a', ['href' => $tableName . ".php?op=delete&{$fieldId}=" . $double, 'title' => $lang], $img) . PHP_EOL; |
|
| 162 | - $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n" . $anchor) . PHP_EOL; |
|
| 160 | + $img = $hc->getHtmlTag('img', ['src' => $src.$double, 'alt' => $tableName], '', true); |
|
| 161 | + $anchor .= $hc->getHtmlTag('a', ['href' => $tableName.".php?op=delete&{$fieldId}=".$double, 'title' => $lang], $img).PHP_EOL; |
|
| 162 | + $td .= $hc->getHtmlTag('td', ['class' => 'center'], "\n".$anchor).PHP_EOL; |
|
| 163 | 163 | $cycle = $hc->getSmartyNoSimbol('cycle values="odd, even"'); |
| 164 | - $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td) . PHP_EOL; |
|
| 165 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL; |
|
| 166 | - $tbody = $hc->getHtmlTag('tbody', [], $foreach) . PHP_EOL; |
|
| 164 | + $tr = $hc->getHtmlTag('tr', ['class' => $cycle], $td).PHP_EOL; |
|
| 165 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL; |
|
| 166 | + $tbody = $hc->getHtmlTag('tbody', [], $foreach).PHP_EOL; |
|
| 167 | 167 | |
| 168 | - return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL; |
|
| 168 | + return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | /** |
@@ -175,10 +175,10 @@ discard block |
||
| 175 | 175 | private function getTemplatesBlocksTableTfoot() |
| 176 | 176 | { |
| 177 | 177 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 178 | - $td = $hc->getHtmlTag('td', [], ' ') . PHP_EOL; |
|
| 179 | - $tr = $hc->getHtmlTag('tr', [], $td) . PHP_EOL; |
|
| 178 | + $td = $hc->getHtmlTag('td', [], ' ').PHP_EOL; |
|
| 179 | + $tr = $hc->getHtmlTag('tr', [], $td).PHP_EOL; |
|
| 180 | 180 | |
| 181 | - return $hc->getHtmlTag('tfoot', [], $tr) . PHP_EOL; |
|
| 181 | + return $hc->getHtmlTag('tfoot', [], $tr).PHP_EOL; |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | $tbody .= $this->getTemplatesBlocksTableTfoot(); |
| 201 | 201 | $single = $hc->getSmartySingleVar('table_type'); |
| 202 | 202 | |
| 203 | - return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL; |
|
| 203 | + return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL; |
|
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |