@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $tplids[] = $tplid; |
| 63 | 63 | } |
| 64 | 64 | if (count($tplids) > 0) { |
| 65 | - $tplfileHandler = xoops_getHandler('tplfile'); |
|
| 65 | + $tplfileHandler = xoops_getHandler('tplfile'); |
|
| 66 | 66 | $duplicate_files = $tplfileHandler->getObjects( |
| 67 | 67 | new Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN') |
| 68 | 68 | ); |
@@ -67,14 +67,14 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $ret = ''; |
| 69 | 69 | if (is_array($selector)) { |
| 70 | - $ret .= $t. implode("\n", $selector) . ' {'; |
|
| 70 | + $ret .= $t.implode("\n", $selector).' {'; |
|
| 71 | 71 | } else { |
| 72 | - $ret .= $selector . ' {'; |
|
| 72 | + $ret .= $selector.' {'; |
|
| 73 | 73 | } |
| 74 | 74 | if (is_array($content)) { |
| 75 | - $ret .= $t. implode("\n", $content) . ';'; |
|
| 75 | + $ret .= $t.implode("\n", $content).';'; |
|
| 76 | 76 | } else { |
| 77 | - $ret .= $content . ';'; |
|
| 77 | + $ret .= $content.';'; |
|
| 78 | 78 | } |
| 79 | 79 | $ret = '}'; |
| 80 | 80 | |
@@ -142,12 +142,12 @@ |
||
| 142 | 142 | $namespace = ''; |
| 143 | 143 | if (false !== ($lastNsPos = strrpos($className, $this->_namespaceSeparator))) { |
| 144 | 144 | $namespace = substr($className, 0, $lastNsPos); |
| 145 | - $className = substr($className, $lastNsPos + 1); |
|
| 145 | + $className = substr($className, $lastNsPos+1); |
|
| 146 | 146 | $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR; |
| 147 | 147 | } |
| 148 | 148 | $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).$this->_fileExtension; |
| 149 | 149 | |
| 150 | - require(null !== $this->_includePath ? $this->_includePath . DIRECTORY_SEPARATOR : '') . $fileName; |
|
| 150 | + require(null !== $this->_includePath ? $this->_includePath.DIRECTORY_SEPARATOR : '').$fileName; |
|
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | } |
@@ -61,10 +61,10 @@ |
||
| 61 | 61 | } |
| 62 | 62 | $aboutRes = ''; |
| 63 | 63 | $istart = strpos($about, $paypalform[0], 1); |
| 64 | - $iend = strpos($about, $paypalform[5], $istart + 1) + strlen($paypalform[5]) - 1; |
|
| 65 | - $aboutRes .= substr($about, 0, $istart - 1); |
|
| 64 | + $iend = strpos($about, $paypalform[5], $istart+1)+strlen($paypalform[5])-1; |
|
| 65 | + $aboutRes .= substr($about, 0, $istart-1); |
|
| 66 | 66 | $aboutRes .= implode("\n", $donationform); |
| 67 | - $aboutRes .= substr($about, $iend + 1, strlen($about) - $iend - 1); |
|
| 67 | + $aboutRes .= substr($about, $iend+1, strlen($about)-$iend-1); |
|
| 68 | 68 | |
| 69 | 69 | return $aboutRes; |
| 70 | 70 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | //include_once XOOPS_ROOT_PATH . '/modules/TDMCreate/include/common.php'; |
| 26 | 26 | |
| 27 | 27 | if (function_exists($_GET['f'])) { // get function name and parameter $_GET['f']($_GET["p"]); |
| 28 | - include_once __DIR__ . '/logoGenerator.php'; |
|
| 28 | + include_once __DIR__.'/logoGenerator.php'; |
|
| 29 | 29 | $ret = logoGenerator::createLogo($_GET['iconName'], $_GET['caption']); |
| 30 | 30 | phpFunction($ret); |
| 31 | 31 | } else { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | // Write text |
| 85 | 85 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 86 | - $spaceToBorder = (92 - strlen($moduleName) * 7.5) / 2; |
|
| 86 | + $spaceToBorder = (92-strlen($moduleName) * 7.5) / 2; |
|
| 87 | 87 | imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, $moduleName, []); |
| 88 | 88 | |
| 89 | 89 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | if (('.' !== $file) && ('..' !== $file)) { |
| 112 | 112 | if (is_dir($src.'/'.$file)) { |
| 113 | 113 | // Copy the directory itself |
| 114 | - $this->copyDir($src . '/' . $file, $dst . '/' . $file); |
|
| 114 | + $this->copyDir($src.'/'.$file, $dst.'/'.$file); |
|
| 115 | 115 | } else { |
| 116 | 116 | // Make sure you copy the current script |
| 117 | 117 | copy($src.'/'.$file, $dst.'/'.$file); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $ret .= $xCodeImageList->getXcMediaUploader('uploader', $xRootPath, $moduleDirname, $t); |
| 165 | 165 | $post = $pCodeImageList->getPhpCodeGlobalsVariables('xoops_upload_file', 'POST').'[0]'; |
| 166 | 166 | $fetchMedia = $this->getAxcFetchMedia('uploader', $post); |
| 167 | - $ifelse = $t."\t//" . $this->getAxcSetPrefix('uploader', "{$fieldName}_") . ";\n"; |
|
| 167 | + $ifelse = $t."\t//".$this->getAxcSetPrefix('uploader', "{$fieldName}_").";\n"; |
|
| 168 | 168 | $ifelse .= $t."\t//{$fetchMedia};\n"; |
| 169 | 169 | $contentElseInt = $xCodeImageList->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t"); |
| 170 | 170 | $contentIf = $xCodeImageList->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t"); |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | $ifelse = $pCodeUploadImage->getPhpCodePregFunzions('extension', $expr, '', $file, 'replace', false, $t."\t"); |
| 203 | 203 | |
| 204 | 204 | $ifelse .= $t."\t\$imgName = str_replace(' ', '', \$_POST['{$fieldMain}']).'.'.\$extension;\n"; |
| 205 | - $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t . "\t") . ";\n"; |
|
| 205 | + $ifelse .= $this->getAxcSetPrefix('uploader', '$imgName', $t."\t").";\n"; |
|
| 206 | 206 | $ifelse .= $t."\t{$fetchMedia};\n"; |
| 207 | 207 | $contentElseInt = $xCodeUploadImage->getXcSetVar($tableName, $fieldName, '$uploader->getSavedFileName()', $t."\t\t"); |
| 208 | 208 | $contentIf = $xCodeUploadImage->getXcEqualsOperator('$errors', '$uploader->getErrors()', null, false, $t."\t\t"); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | public function getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName, $formatUrl = false, $t = '') |
| 228 | 228 | { |
| 229 | 229 | $stuModuleDirname = strtoupper($moduleDirname); |
| 230 | - $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname . '_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t); |
|
| 230 | + $ret = $this->getAxcImageFileSetVar($moduleDirname, $stuModuleDirname.'_UPLOAD_FILES_PATH', $tableName, $fieldName, $formatUrl, $t); |
|
| 231 | 231 | |
| 232 | 232 | return $ret; |
| 233 | 233 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | } else { |
| 259 | 259 | $files = '/files'; |
| 260 | 260 | $ret .= $pCodeFileSetVar->getPhpCodeCommentLine('Set Var', $fieldName, $t); |
| 261 | - $ifelse .= $t."\t//" . $this->getAxcSetPrefix('uploader', "'{$fieldName}_'") . ";\n"; |
|
| 261 | + $ifelse .= $t."\t//".$this->getAxcSetPrefix('uploader', "'{$fieldName}_'").";\n"; |
|
| 262 | 262 | $ifelse .= $t."\t//{$fetchMedia};\n"; |
| 263 | 263 | } |
| 264 | 264 | $ret .= $pCodeFileSetVar->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/uploader', true, false, '', $t); |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | $ret .= $pc->getPhpCodeCommentLine('Table view', $tableName, $t); |
| 149 | 149 | $contentForeach = $xc->getXcGetValues($tableName, $tableSoleName, 'i', false, "\t"); |
| 150 | - $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t . "\t\t"); |
|
| 151 | - $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t . "\t\t"); |
|
| 152 | - $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t . "\t"); |
|
| 153 | - $condIf .= $xc->getXcPageNav($tableName, $t . "\t"); |
|
| 154 | - $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t . "\t"); |
|
| 150 | + $contentForeach .= $xc->getXcXoopsTplAppend("{$tableName}_list", "\${$tableSoleName}", $t."\t\t"); |
|
| 151 | + $contentForeach .= $pc->getPhpCodeUnset($tableSoleName, $t."\t\t"); |
|
| 152 | + $condIf = $pc->getPhpCodeForeach("{$tableName}All", true, false, 'i', $contentForeach, $t."\t"); |
|
| 153 | + $condIf .= $xc->getXcPageNav($tableName, $t."\t"); |
|
| 154 | + $condElse = $xc->getXcTplAssign('error', "{$language}THEREARENT_{$stuTableName}", true, $t."\t"); |
|
| 155 | 155 | $ret .= $pc->getPhpCodeConditions("\${$tableName}Count", ' > ', '0', $condIf, $condElse, $t); |
| 156 | 156 | |
| 157 | 157 | return $ret; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $stuTableName = strtoupper($tableName); |
| 176 | 176 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 177 | 177 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 178 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 178 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 179 | 179 | |
| 180 | 180 | if (in_array(1, $fieldInForm)) { |
| 181 | 181 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableName, '', 'list', $t); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $ret = $pc->getPhpCodeCommentLine('Permission to', $perm, "\t\t\t"); |
| 208 | 208 | $content = $xc->getXcAddRight('gpermHandler', "{$moduleDirname}_{$perm}", '$permId', '$onegroupId', "\$GLOBALS['xoopsModule']->getVar('mid')", false, "\t"); |
| 209 | 209 | $foreach = $pc->getPhpCodeForeach("_POST['groups_{$perm}']", false, false, 'onegroupId', $content, "\t\t\t\t"); |
| 210 | - $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 210 | + $ret .= $pc->getPhpCodeConditions("isset(\$_POST['groups_{$perm}'])", null, null, $foreach, false, "\t\t\t"); |
|
| 211 | 211 | |
| 212 | 212 | return $ret; |
| 213 | 213 | } |
@@ -236,11 +236,11 @@ discard block |
||
| 236 | 236 | $xoopsSecurityCheck = $xc->getXcSecurityCheck('!'); |
| 237 | 237 | $securityError = $xc->getXcSecurityErrors(); |
| 238 | 238 | $implode = $pc->getPhpCodeImplode(',', $securityError); |
| 239 | - $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t . "\t"); |
|
| 240 | - $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 239 | + $redirectError = $xc->getXcRedirectHeader($tableName, '', '3', $implode, true, $t."\t"); |
|
| 240 | + $ret .= $pc->getPhpCodeConditions($xoopsSecurityCheck, '', '', $redirectError, false, $t); |
|
| 241 | 241 | |
| 242 | 242 | $isset = $pc->getPhpCodeIsset($ccFieldId); |
| 243 | - $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t . "\t"); |
|
| 243 | + $contentIf = $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t."\t"); |
|
| 244 | 244 | $contentElse = $xc->getXcObjHandlerCreate($tableName, "\t\t\t"); |
| 245 | 245 | $ret .= $pc->getPhpCodeConditions($isset, '', '', $contentIf, $contentElse, $t); |
| 246 | 246 | $ret .= $pc->getPhpCodeCommentLine('Set Vars', null, "\t\t"); |
@@ -282,20 +282,20 @@ discard block |
||
| 282 | 282 | } |
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | - $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 285 | + $ret .= $pc->getPhpCodeCommentLine('Insert Data', null, "\t\t"); |
|
| 286 | 286 | $insert = $xc->getXcInsert($tableName, $tableName, 'Obj'); |
| 287 | 287 | $contentInsert = ''; |
| 288 | 288 | if (1 == $tableCategory) { |
| 289 | 289 | $ucfTableName = ucfirst($tableName); |
| 290 | - $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t . "\t"); |
|
| 290 | + $contentInsert = $xc->getXcEqualsOperator('$newCatId', "\${$tableName}Obj->getNewInsertedId{$ucfTableName}()", null, false, $t."\t"); |
|
| 291 | 291 | $ucfFieldId = $this->getCamelCase($fieldId, true); |
| 292 | - $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t . "\t"); |
|
| 293 | - $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t . "\t"); |
|
| 294 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId); |
|
| 295 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'submit'); |
|
| 296 | - $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new' . $ucfFieldId, 'approve'); |
|
| 292 | + $contentInsert .= $pc->getPhpCodeTernaryOperator('permId', "isset(\$_REQUEST['{$fieldId}'])", "\${$ccFieldId}", "\$new{$ucfFieldId}", $t."\t"); |
|
| 293 | + $contentInsert .= $xc->getXcEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", null, false, $t."\t"); |
|
| 294 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId); |
|
| 295 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'submit'); |
|
| 296 | + $contentInsert .= $this->getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, 'new'.$ucfFieldId, 'approve'); |
|
| 297 | 297 | } |
| 298 | - $contentInsert .= $xc->getXcRedirectHeader($tableName . '', '?op=list', '2', "{$language}FORM_OK", true, $t . "\t"); |
|
| 298 | + $contentInsert .= $xc->getXcRedirectHeader($tableName.'', '?op=list', '2', "{$language}FORM_OK", true, $t."\t"); |
|
| 299 | 299 | $ret .= $pc->getPhpCodeConditions($insert, '', '', $contentInsert, false, $t); |
| 300 | 300 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 301 | 301 | $ret .= $xc->getXcTplAssign('error', "\${$tableName}Obj->getHtmlErrors()", true, $t); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | |
| 333 | 333 | $ret = $axc->getAdminTemplateMain($moduleDirname, $tableName); |
| 334 | 334 | $navigation = $axc->getAdminDisplayNavigation($tableName); |
| 335 | - $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 335 | + $ret .= $xc->getXcTplAssign('navigation', $navigation, true, $t); |
|
| 336 | 336 | |
| 337 | 337 | if (in_array(1, $fieldInForm)) { |
| 338 | 338 | $ret .= $axc->getAdminItemButton($language, $tableName, $stuTableSoleName, '?op=new', 'add', $t); |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | $ret .= $xc->getXcTplAssign('buttons', '$adminObject->displayButton(\'left\')', true, $t); |
| 341 | 341 | } |
| 342 | 342 | $ret .= $pc->getPhpCodeCommentLine('Get Form', null, "\t\t"); |
| 343 | - $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName . 'Handler', false, $t); |
|
| 343 | + $ret .= $xc->getXcGet($tableName, $ccFieldId, 'Obj', $tableName.'Handler', false, $t); |
|
| 344 | 344 | $ret .= $xc->getXcGetForm('form', $tableName, 'Obj', $t); |
| 345 | 345 | $ret .= $xc->getXcTplAssign('form', '$form->render()', true, $t); |
| 346 | 346 | |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | } |
| 405 | 405 | $delete = $this->getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, "\t\t"); |
| 406 | 406 | |
| 407 | - $cases = [ |
|
| 407 | + $cases = [ |
|
| 408 | 408 | 'list' => [$list], |
| 409 | 409 | 'new' => [$new], |
| 410 | 410 | 'save' => [$save], |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | $pTopic = TDMCreatePhpCode::getInstance(); |
| 470 | 470 | $ret = $pTopic->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 471 | 471 | $fieldParent = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 472 | - $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic . 'Handler', false, $t); |
|
| 472 | + $ret .= $this->getXcGet($rpFieldName, $fieldParent, '', $tableNameTopic.'Handler', false, $t); |
|
| 473 | 473 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 474 | 474 | |
| 475 | 475 | return $ret; |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | { |
| 492 | 492 | $pParentTopic = TDMCreatePhpCode::getInstance(); |
| 493 | 493 | $parentTopic = $pParentTopic->getPhpCodeCommentLine('Get', $tableNameTopic.' Handler', $t."\t"); |
| 494 | - $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t . "\t"); |
|
| 494 | + $parentTopic .= $this->getXoopsHandlerLine($moduleDirname, $tableNameTopic, $t."\t"); |
|
| 495 | 495 | $elseGroups = $this->getXcEqualsOperator('$groups', 'XOOPS_GROUP_ANONYMOUS'); |
| 496 | 496 | $ret = $pParentTopic->getPhpCodeConditions("!isset(\${$tableNameTopic}Handler", '', '', $parentTopic, $elseGroups); |
| 497 | 497 | $ret .= $this->getXcGetVarFromID("\${$lpFieldName}['{$rpFieldName}']", $tableNameTopic, $tableSoleNameTopic, $tableName, $fieldNameParent, $t); |
@@ -514,7 +514,7 @@ discard block |
||
| 514 | 514 | $pVarFromID = TDMCreatePhpCode::getInstance(); |
| 515 | 515 | $ret = $pVarFromID->getPhpCodeCommentLine('Get Var', $fieldName, $t); |
| 516 | 516 | $getVarFromID = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldName, true, ''); |
| 517 | - $rightGet = $this->getXcAnchorFunction($anchor . 'Handler', 'get' . $var . 'FromId', $getVarFromID); |
|
| 517 | + $rightGet = $this->getXcAnchorFunction($anchor.'Handler', 'get'.$var.'FromId', $getVarFromID); |
|
| 518 | 518 | $ret .= $this->getXcEqualsOperator($left, $rightGet, null, false, $t); |
| 519 | 519 | |
| 520 | 520 | return $ret; |
@@ -1082,7 +1082,7 @@ discard block |
||
| 1082 | 1082 | $phpCodeSecurity = TDMCreatePhpCode::getInstance(); |
| 1083 | 1083 | $securityError = $this->getXcSecurityErrors(); |
| 1084 | 1084 | $implode = $phpCodeSecurity->getPhpCodeImplode(',', $securityError); |
| 1085 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1085 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '', 3, $implode, $t); |
|
| 1086 | 1086 | $securityCheck = $this->getXcSecurityCheck(); |
| 1087 | 1087 | |
| 1088 | 1088 | return $phpCodeSecurity->getPhpCodeConditions('!'.$securityCheck, '', '', $content, $t); |
@@ -1098,7 +1098,7 @@ discard block |
||
| 1098 | 1098 | public function getXcInsertData($tableName, $language, $t = '') |
| 1099 | 1099 | { |
| 1100 | 1100 | $phpCodeInsertData = TDMCreatePhpCode::getInstance(); |
| 1101 | - $content = "{$t}\t" . $this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1101 | + $content = "{$t}\t".$this->getXcRedirectHeader($tableName, '?op=list', 2, "{$language}FORM_OK"); |
|
| 1102 | 1102 | $handlerInsert = $this->getXcHandler($tableName, $tableName, false, true, false, 'Obj'); |
| 1103 | 1103 | |
| 1104 | 1104 | return $phpCodeInsertData->getPhpCodeConditions($handlerInsert, '', '', $content, $t); |
@@ -1145,7 +1145,7 @@ discard block |
||
| 1145 | 1145 | $phpXoopsConfirm = TDMCreatePhpCode::getInstance(); |
| 1146 | 1146 | $array = "array('ok' => 1, '{$fieldId}' => \${$ccFieldId}, 'op' => '{$options}')"; |
| 1147 | 1147 | $server = $phpXoopsConfirm->getPhpCodeGlobalsVariables('REQUEST_URI', 'SERVER'); |
| 1148 | - $getVar = $this->getXcGetVar('', $tableName . 'Obj', $fieldMain, true, ''); |
|
| 1148 | + $getVar = $this->getXcGetVar('', $tableName.'Obj', $fieldMain, true, ''); |
|
| 1149 | 1149 | $sprintf = $phpXoopsConfirm->getPhpCodeSprintf($language.'FORM_SURE_'.$stuOptions, $getVar); |
| 1150 | 1150 | $ret = "{$t}xoops_confirm({$array}, {$server}, {$sprintf});\n"; |
| 1151 | 1151 | |
@@ -1319,7 +1319,7 @@ discard block |
||
| 1319 | 1319 | { |
| 1320 | 1320 | $ret = TDMCreatePhpCode::getInstance()->getPhpCodeCommentLine('Get Var', $fieldNameParent, $t); |
| 1321 | 1321 | $paramGet = $this->getXcGetVar('', "\${$tableName}All[\$i]", $fieldNameParent, true, ''); |
| 1322 | - $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic . 'Handler', false, $t); |
|
| 1322 | + $ret .= $this->getXcGet($rpFieldName, $paramGet, '', $tableNameTopic.'Handler', false, $t); |
|
| 1323 | 1323 | $ret .= $this->getXcGetVar("\${$lpFieldName}['{$rpFieldName}']", "\${$rpFieldName}", $fieldNameTopic, false, $t); |
| 1324 | 1324 | |
| 1325 | 1325 | return $ret; |
@@ -1407,18 +1407,18 @@ discard block |
||
| 1407 | 1407 | $fieldMain = $fieldName; |
| 1408 | 1408 | } |
| 1409 | 1409 | if ((5 == $fieldElement) || (6 == $fieldElement)) { |
| 1410 | - $ret .= $t . $this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1410 | + $ret .= $t.$this->getXcCheckBoxOrRadioYNSetVar($tableName, $fieldName); |
|
| 1411 | 1411 | } elseif (13 == $fieldElement) { |
| 1412 | 1412 | $ret .= $axCodeSaveElements->getAxcUploadImageSetVar($moduleDirname, $tableName, $fieldName, $fieldMain); |
| 1413 | 1413 | } elseif (14 == $fieldElement) { |
| 1414 | 1414 | $ret .= $axCodeSaveElements->getAxcUploadFileSetVar($moduleDirname, $tableName, $fieldName); |
| 1415 | 1415 | } elseif (15 == $fieldElement) { |
| 1416 | - $ret .= $t . $this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1416 | + $ret .= $t.$this->getXcTextDateSelectSetVar($tableName, $tableSoleName, $fieldName); |
|
| 1417 | 1417 | } else { |
| 1418 | 1418 | if ((0 != $f) && 1 == $tableAutoincrement) { |
| 1419 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1419 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1420 | 1420 | } elseif ((0 == $f) && 0 == $tableAutoincrement) { |
| 1421 | - $ret .= $t . $this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1421 | + $ret .= $t.$this->getXcSetVar($tableName, $fieldName, "\$_POST['{$fieldName}']"); |
|
| 1422 | 1422 | } |
| 1423 | 1423 | } |
| 1424 | 1424 | } |
@@ -1440,7 +1440,7 @@ discard block |
||
| 1440 | 1440 | $ret = $phpCodePageNav->getPhpCodeCommentLine('Display Navigation', null, $t); |
| 1441 | 1441 | $condition = $phpCodePageNav->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/pagenav', true, false, 'include', $t."\t"); |
| 1442 | 1442 | $condition .= $classXCode->getClassXoopsPageNav('pagenav', $tableName.'Count', 'limit', 'start', 'start', "'op=list&limit=' . \$limit", false, $t."\t"); |
| 1443 | - $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t . "\t"); |
|
| 1443 | + $condition .= $this->getXcTplAssign('pagenav', '$pagenav->renderNav(4)', true, $t."\t"); |
|
| 1444 | 1444 | $ret .= $phpCodePageNav->getPhpCodeConditions("\${$tableName}Count", ' > ', '$limit', $condition, false, $t); |
| 1445 | 1445 | |
| 1446 | 1446 | return $ret; |