@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 84 | 84 | foreach (array_keys($fields) as $f) { |
| 85 | 85 | $fieldName = $fields[$f]->getVar('field_name'); |
| 86 | - $langStuFieldName = $language . mb_strtoupper($fieldName); |
|
| 86 | + $langStuFieldName = $language.mb_strtoupper($fieldName); |
|
| 87 | 87 | if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) { |
| 88 | 88 | $ret .= <<<EOT |
| 89 | 89 | <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $moduleDirname = $module->getVar('mod_dirname'); |
| 101 | 101 | $content = $this->getTemplatesUserMoreFile(); |
| 102 | 102 | |
| 103 | - $this->create($moduleDirname, $this->folder, $filename . '.' . $this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 103 | + $this->create($moduleDirname, $this->folder, $filename.'.'.$this->extension, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 104 | 104 | |
| 105 | 105 | return $this->renderFile(); |
| 106 | 106 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $hc = TDMCreateSmartyCode::getInstance(); |
| 77 | 77 | |
| 78 | - return $hc->getSmartyIncludeFile($moduleDirname, 'header') . PHP_EOL; |
|
| 78 | + return $hc->getSmartyIncludeFile($moduleDirname, 'header').PHP_EOL; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $table = $this->getTemplatesUserIndexTableThead($tableName, $language); |
| 94 | 94 | $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
| 95 | 95 | |
| 96 | - return $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL; |
|
| 96 | + return $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -108,10 +108,10 @@ discard block |
||
| 108 | 108 | $stuTableName = mb_strtoupper($tableName); |
| 109 | 109 | $lang = $hc->getSmartyConst($language, $stuTableName); |
| 110 | 110 | $col = $hc->getSmartySingleVar('numb_col'); |
| 111 | - $th = $hc->getHtmlTableHead($lang, '', $col) . PHP_EOL; |
|
| 112 | - $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL; |
|
| 111 | + $th = $hc->getHtmlTableHead($lang, '', $col).PHP_EOL; |
|
| 112 | + $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL; |
|
| 113 | 113 | |
| 114 | - return $hc->getHtmlTableThead($tr) . PHP_EOL; |
|
| 114 | + return $hc->getHtmlTableThead($tr).PHP_EOL; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -127,14 +127,14 @@ discard block |
||
| 127 | 127 | $hc = TDMCreateHtmlSmartyCodes::getInstance(); |
| 128 | 128 | $type = $hc->getSmartySingleVar('panel_type'); |
| 129 | 129 | $include = $hc->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName); |
| 130 | - $div = $hc->getHtmlDiv($include, 'panel panel-' . $type); |
|
| 131 | - $cont = $hc->getHtmlTableData($div) . PHP_EOL; |
|
| 132 | - $html = $hc->getHtmlEmpty('</tr><tr>') . PHP_EOL; |
|
| 133 | - $cont .= $hc->getSmartyConditions($tableSoleName . '.count', ' is div by ', '$divideby', $html) . PHP_EOL; |
|
| 134 | - $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont) . PHP_EOL; |
|
| 135 | - $tr = $hc->getHtmlTableRow($foreach) . PHP_EOL; |
|
| 130 | + $div = $hc->getHtmlDiv($include, 'panel panel-'.$type); |
|
| 131 | + $cont = $hc->getHtmlTableData($div).PHP_EOL; |
|
| 132 | + $html = $hc->getHtmlEmpty('</tr><tr>').PHP_EOL; |
|
| 133 | + $cont .= $hc->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$divideby', $html).PHP_EOL; |
|
| 134 | + $foreach = $hc->getSmartyForeach($tableSoleName, $tableName, $cont).PHP_EOL; |
|
| 135 | + $tr = $hc->getHtmlTableRow($foreach).PHP_EOL; |
|
| 136 | 136 | |
| 137 | - return $hc->getHtmlTableTbody($tr) . PHP_EOL; |
|
| 137 | + return $hc->getHtmlTableTbody($tr).PHP_EOL; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
@@ -144,10 +144,10 @@ discard block |
||
| 144 | 144 | private function getTemplatesUserIndexTableTfoot() |
| 145 | 145 | { |
| 146 | 146 | $hc = TDMCreateHtmlCode::getInstance(); |
| 147 | - $td = $hc->getHtmlTableData(' ') . PHP_EOL; |
|
| 148 | - $tr = $hc->getHtmlTableRow($td) . PHP_EOL; |
|
| 147 | + $td = $hc->getHtmlTableData(' ').PHP_EOL; |
|
| 148 | + $tr = $hc->getHtmlTableRow($td).PHP_EOL; |
|
| 149 | 149 | |
| 150 | - return $hc->getHtmlTableTfoot($tr) . PHP_EOL; |
|
| 150 | + return $hc->getHtmlTableTfoot($tr).PHP_EOL; |
|
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | /** |
@@ -248,10 +248,10 @@ discard block |
||
| 248 | 248 | $single = $hc->getSmartySingleVar('table_type'); |
| 249 | 249 | $table = $this->getTemplatesUserIndexTableThead($tableName, $language); |
| 250 | 250 | $table .= $this->getTemplatesUserIndexTableTBody($moduleDirname, $tableName, $tableSoleName, $language); |
| 251 | - $table .= $hc->getHtmlTable($table, 'table table-' . $single) . PHP_EOL; |
|
| 252 | - $div = $hc->getHtmlDiv($table, 'table-responsive') . PHP_EOL; |
|
| 251 | + $table .= $hc->getHtmlTable($table, 'table table-'.$single).PHP_EOL; |
|
| 252 | + $div = $hc->getHtmlDiv($table, 'table-responsive').PHP_EOL; |
|
| 253 | 253 | |
| 254 | - return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/ . PHP_EOL; |
|
| 254 | + return $ret/*$hc->getSmartyConditions($tableName, ' > ', '0', $div, false, true)*/.PHP_EOL; |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | - $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading') . PHP_EOL; |
|
| 101 | + $ret .= $hc->getHtmlDiv($retNumb, 'panel-heading').PHP_EOL; |
|
| 102 | 102 | $retElem = ''; |
| 103 | 103 | foreach (array_keys($fields) as $f) { |
| 104 | 104 | $fieldElement = $fields[$f]->getVar('field_element'); |
@@ -111,45 +111,45 @@ discard block |
||
| 111 | 111 | $fieldName = $fields[$f]->getVar('field_name'); |
| 112 | 112 | $rpFieldName = $this->getRightString($fieldName); |
| 113 | 113 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 114 | - $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify') . PHP_EOL; |
|
| 114 | + $retElem .= $hc->getHtmlSpan($doubleVar, 'col-sm-9 justify').PHP_EOL; |
|
| 115 | 115 | break; |
| 116 | 116 | case 10: |
| 117 | 117 | $fieldName = $fields[$f]->getVar('field_name'); |
| 118 | 118 | $rpFieldName = $this->getRightString($fieldName); |
| 119 | 119 | $singleVar = $hc->getSmartySingleVar('xoops_icons32_url'); |
| 120 | 120 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 121 | - $img = $hc->getHtmlImage($singleVar . '/' . $doubleVar, "{$tableName}"); |
|
| 122 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL; |
|
| 121 | + $img = $hc->getHtmlImage($singleVar.'/'.$doubleVar, "{$tableName}"); |
|
| 122 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL; |
|
| 123 | 123 | unset($img); |
| 124 | 124 | break; |
| 125 | 125 | case 13: |
| 126 | 126 | $fieldName = $fields[$f]->getVar('field_name'); |
| 127 | 127 | $rpFieldName = $this->getRightString($fieldName); |
| 128 | - $singleVar = $hc->getSmartySingleVar($moduleDirname . '_upload_url'); |
|
| 128 | + $singleVar = $hc->getSmartySingleVar($moduleDirname.'_upload_url'); |
|
| 129 | 129 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 130 | - $img = $hc->getHtmlImage($singleVar . "/images/{$tableName}/" . $doubleVar, "{$tableName}"); |
|
| 131 | - $retElem .= $hc->getHtmlSpan($img, 'col-sm-3') . PHP_EOL; |
|
| 130 | + $img = $hc->getHtmlImage($singleVar."/images/{$tableName}/".$doubleVar, "{$tableName}"); |
|
| 131 | + $retElem .= $hc->getHtmlSpan($img, 'col-sm-3').PHP_EOL; |
|
| 132 | 132 | unset($img); |
| 133 | 133 | break; |
| 134 | 134 | } |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | - $ret .= $hc->getHtmlDiv($retElem, 'panel-body') . PHP_EOL; |
|
| 138 | + $ret .= $hc->getHtmlDiv($retElem, 'panel-body').PHP_EOL; |
|
| 139 | 139 | $retFoot = ''; |
| 140 | 140 | foreach (array_keys($fields) as $f) { |
| 141 | 141 | if (1 == $fields[$f]->getVar('field_user')) { |
| 142 | 142 | if (1 == $fields[$f]->getVar('field_tfoot')) { |
| 143 | 143 | $fieldName = $fields[$f]->getVar('field_name'); |
| 144 | 144 | $rpFieldName = $this->getRightString($fieldName); |
| 145 | - $langConst = mb_strtoupper($tableSoleName) . '_' . mb_strtoupper($rpFieldName); |
|
| 145 | + $langConst = mb_strtoupper($tableSoleName).'_'.mb_strtoupper($rpFieldName); |
|
| 146 | 146 | $lang = $hc->getSmartyConst($language, $langConst); |
| 147 | 147 | $doubleVar = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName); |
| 148 | - $retFoot .= $hc->getHtmlSpan($lang . ': ' . $doubleVar, 'block-pie justify') . PHP_EOL; |
|
| 148 | + $retFoot .= $hc->getHtmlSpan($lang.': '.$doubleVar, 'block-pie justify').PHP_EOL; |
|
| 149 | 149 | } |
| 150 | 150 | } |
| 151 | 151 | } |
| 152 | - $ret .= $hc->getHtmlDiv($retFoot, 'panel-foot') . PHP_EOL; |
|
| 152 | + $ret .= $hc->getHtmlDiv($retFoot, 'panel-foot').PHP_EOL; |
|
| 153 | 153 | |
| 154 | 154 | return $ret; |
| 155 | 155 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 84 | 84 | foreach (array_keys($fields) as $f) { |
| 85 | 85 | $fieldName = $fields[$f]->getVar('field_name'); |
| 86 | - $langStuFieldName = $language . mb_strtoupper($fieldName); |
|
| 86 | + $langStuFieldName = $language.mb_strtoupper($fieldName); |
|
| 87 | 87 | if ((1 == $table->getVar('table_autoincrement')) || (1 == $fields[$f]->getVar('field_user'))) { |
| 88 | 88 | $ret .= <<<EOT |
| 89 | 89 | <th class="center"><{\$smarty.const.{$langStuFieldName}}></th>\n |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | private function setRepositoryPath($moduleDirname) |
| 154 | 154 | { |
| 155 | - $this->uploadPath = TDMC_UPLOAD_REPOSITORY_PATH . '/' . $moduleDirname; |
|
| 155 | + $this->uploadPath = TDMC_UPLOAD_REPOSITORY_PATH.'/'.$moduleDirname; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | private function getUploadPath() |
| 252 | 252 | { |
| 253 | 253 | if (null != $this->getSubDir()) { |
| 254 | - $ret = $this->getRepositoryPath() . '/' . $this->getSubDir(); |
|
| 254 | + $ret = $this->getRepositoryPath().'/'.$this->getSubDir(); |
|
| 255 | 255 | } else { |
| 256 | 256 | $ret = $this->getRepositoryPath(); |
| 257 | 257 | } |
@@ -308,12 +308,12 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | public function getLanguage($moduleDirname, $prefix = '', $suffix = '') |
| 310 | 310 | { |
| 311 | - $lang = '_' . $prefix . '_' . mb_strtoupper($moduleDirname); |
|
| 311 | + $lang = '_'.$prefix.'_'.mb_strtoupper($moduleDirname); |
|
| 312 | 312 | $ret = $lang; |
| 313 | 313 | if (!empty($suffix) || '_' !== $suffix) { |
| 314 | - $ret = $lang . '_' . $suffix; |
|
| 314 | + $ret = $lang.'_'.$suffix; |
|
| 315 | 315 | } elseif ('_' === $suffix) { |
| 316 | - $ret = $lang . '_'; |
|
| 316 | + $ret = $lang.'_'; |
|
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | return $ret; |
@@ -363,10 +363,10 @@ discard block |
||
| 363 | 363 | $rightString = $this->getRightString($string); |
| 364 | 364 | $leftString = $this->getLeftString($string); |
| 365 | 365 | if ($ucfirst) { |
| 366 | - return $this->getUcfirst($leftString) . $this->getUcfirst($rightString); |
|
| 366 | + return $this->getUcfirst($leftString).$this->getUcfirst($rightString); |
|
| 367 | 367 | } |
| 368 | 368 | if ($lcfirst) { |
| 369 | - return $this->getLcfirst($leftString) . $this->getUcfirst($rightString); |
|
| 369 | + return $this->getLcfirst($leftString).$this->getUcfirst($rightString); |
|
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | return $string; |
@@ -491,11 +491,11 @@ discard block |
||
| 491 | 491 | } else { |
| 492 | 492 | $ret .= "\n/*\n"; |
| 493 | 493 | } |
| 494 | - $filename = TDMC_CLASS_PATH . '/files/docs/license.txt'; |
|
| 494 | + $filename = TDMC_CLASS_PATH.'/files/docs/license.txt'; |
|
| 495 | 495 | $handle = fopen($filename, 'rb'); |
| 496 | 496 | $data = fread($handle, filesize($filename)); |
| 497 | 497 | fclose($handle); |
| 498 | - $ret .= $data . "\n"; |
|
| 498 | + $ret .= $data."\n"; |
|
| 499 | 499 | $ret .= "*/\n"; |
| 500 | 500 | $copyright = [ |
| 501 | 501 | $name => 'module for xoops', '' => '', '@copyright ' => ' module for xoops', '@license ' => " {$license}", '@package ' => " {$dirname}", |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | public function renderFile() |
| 516 | 516 | { |
| 517 | 517 | $fileName = $this->getFileName(); |
| 518 | - $path = $this->getUploadPath() . '/' . $fileName; |
|
| 518 | + $path = $this->getUploadPath().'/'.$fileName; |
|
| 519 | 519 | $created = $this->getCreated(); |
| 520 | 520 | $notCreated = $this->getNotCreated(); |
| 521 | 521 | $folderName = $this->getFolderName(); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | $fieldName = $fields[$f]->getVar('field_name'); |
| 104 | 104 | $rpFieldName = $this->getRightString($fieldName); |
| 105 | 105 | $fieldNameDesc = ucfirst($rpFieldName); |
| 106 | - $ret .= $this->defines->getDefine($language, $stuTableSoleName . '_' . $rpFieldName, $fieldNameDesc); |
|
| 106 | + $ret .= $this->defines->getDefine($language, $stuTableSoleName.'_'.$rpFieldName, $fieldNameDesc); |
|
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | $ret .= $this->defines->getDefine($language, 'INDEX_THEREARE', "There are %s {$ucfTableName}"); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $content .= $this->geLanguagetMain($module, $language); |
| 153 | 153 | $content .= $this->geLanguagetMainFooter($language); |
| 154 | 154 | |
| 155 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 155 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 156 | 156 | |
| 157 | 157 | return $this->renderFile(); |
| 158 | 158 | } |
@@ -244,8 +244,8 @@ discard block |
||
| 244 | 244 | $rpFieldName = $this->getRightString($fieldName); |
| 245 | 245 | $ucfFieldName = ucfirst($rpFieldName); |
| 246 | 246 | $stuFieldName = mb_strtoupper($rpFieldName); |
| 247 | - $ret .= $df->getDefine($language, 'EDITOR_' . $stuFieldName, 'Editor'); |
|
| 248 | - $ret .= $df->getDefine($language, 'EDITOR_' . $stuFieldName . '_DESC', 'Select the Editor ' . $ucfFieldName . ' to use'); |
|
| 247 | + $ret .= $df->getDefine($language, 'EDITOR_'.$stuFieldName, 'Editor'); |
|
| 248 | + $ret .= $df->getDefine($language, 'EDITOR_'.$stuFieldName.'_DESC', 'Select the Editor '.$ucfFieldName.' to use'); |
|
| 249 | 249 | } |
| 250 | 250 | if (13 == $fieldElement) { |
| 251 | 251 | $fieldImage = true; |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $ucfTableSoleName = ucfirst($tableSoleName); |
| 301 | 301 | $getDefinesNotif = [ |
| 302 | 302 | 'GLOBAL_NOTIFY' => 'Global notify', 'GLOBAL_NOTIFY_DESC' => 'Global notify desc', 'CATEGORY_NOTIFY' => 'Category notify', |
| 303 | - 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName . '_NOTIFY' => $ucfTableSoleName . ' notify', $stuTableSoleName . '_NOTIFY_DESC' => $ucfTableSoleName . ' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_' . $stuTableSoleName . 'MODIFY_NOTIFY' => 'Global ' . $tableSoleName . 'modify notify', 'GLOBAL_' . $stuTableSoleName . 'MODIFY_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . ' modify notify caption', 'GLOBAL_' . $stuTableSoleName . 'MODIFY_NOTIFY_DESC' => 'Global ' . $tableSoleName . 'modify notify desc', 'GLOBAL_' . $stuTableSoleName . 'MODIFY_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . ' modify notify subject', 'GLOBAL_' . $stuTableSoleName . 'BROKEN_NOTIFY' => 'Global ' . $tableSoleName . ' broken notify', 'GLOBAL_' . $stuTableSoleName . 'BROKEN_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . 'broken notify caption', 'GLOBAL_' . $stuTableSoleName . 'BROKEN_NOTIFY_DESC' => 'Global ' . $tableSoleName . 'broken notify desc', 'GLOBAL_' . $stuTableSoleName . 'BROKEN_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . 'broken notify subject', 'GLOBAL_' . $stuTableSoleName . 'SUBMIT_NOTIFY' => 'Global ' . $tableSoleName . ' submit notify', 'GLOBAL_' . $stuTableSoleName . 'SUBMIT_NOTIFY_CAPTION' => 'Global ' . $tableSoleName . ' submit notify caption', 'GLOBAL_' . $stuTableSoleName . 'SUBMIT_NOTIFY_DESC' => 'Global ' . $tableSoleName . 'submit notify desc', 'GLOBAL_' . $stuTableSoleName . 'SUBMIT_NOTIFY_SUBJECT' => 'Global ' . $tableSoleName . 'submit notify subject', 'GLOBAL_NEW' . $stuTableSoleName . '_NOTIFY' => 'Global new' . $tableSoleName . ' notify', 'GLOBAL_NEW' . $stuTableSoleName . '_NOTIFY_CAPTION' => 'Global new' . $tableSoleName . ' notify caption', 'GLOBAL_NEW' . $stuTableSoleName . '_NOTIFY_DESC' => 'Global new' . $tableSoleName . ' notify desc', 'GLOBAL_NEW' . $stuTableSoleName . '_NOTIFY_SUBJECT' => 'Global new' . $tableSoleName . ' notify subject', 'CATEGORY_' . $stuTableSoleName . 'SUBMIT_NOTIFY' => 'Category ' . $tableSoleName . 'submit notify', 'CATEGORY_' . $stuTableSoleName . 'SUBMIT_NOTIFY_CAPTION' => 'Category ' . $tableSoleName . ' submit notify caption', 'CATEGORY_' . $stuTableSoleName . 'SUBMIT_NOTIFY_DESC' => 'Category ' . $tableSoleName . ' submit notify desc', 'CATEGORY_' . $stuTableSoleName . 'SUBMIT_NOTIFY_SUBJECT' => 'Category ' . $tableSoleName . ' submit notify subject', 'CATEGORY_NEW' . $stuTableSoleName . '_NOTIFY' => 'Category new' . $tableSoleName . ' notify', 'CATEGORY_NEW' . $stuTableSoleName . '_NOTIFY_CAPTION' => 'Category new' . $tableSoleName . ' notify caption', 'CATEGORY_NEW' . $stuTableSoleName . '_NOTIFY_DESC' => 'Category new' . $tableSoleName . ' notify desc', 'CATEGORY_NEW' . $stuTableSoleName . '_NOTIFY_SUBJECT' => 'Category new' . $tableSoleName . ' notify subject', $stuTableSoleName . '_APPROVE_NOTIFY' => $ucfTableSoleName . ' approve notify', $stuTableSoleName . '_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName . ' approve notify caption', $stuTableSoleName . '_APPROVE_NOTIFY_DESC' => $ucfTableSoleName . ' approve notify desc', $stuTableSoleName . '_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName . ' approve notify subject', |
|
| 303 | + 'CATEGORY_NOTIFY_DESC' => 'Category notify desc', $stuTableSoleName.'_NOTIFY' => $ucfTableSoleName.' notify', $stuTableSoleName.'_NOTIFY_DESC' => $ucfTableSoleName.' notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY' => 'Global newcategory notify', 'GLOBAL_NEWCATEGORY_NOTIFY_CAPTION' => 'Global newcategory notify caption', 'GLOBAL_NEWCATEGORY_NOTIFY_DESC' => 'Global newcategory notify desc', 'GLOBAL_NEWCATEGORY_NOTIFY_SUBJECT' => 'Global newcategory notify subject', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY' => 'Global '.$tableSoleName.'modify notify', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' modify notify caption', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_DESC' => 'Global '.$tableSoleName.'modify notify desc', 'GLOBAL_'.$stuTableSoleName.'MODIFY_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.' modify notify subject', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY' => 'Global '.$tableSoleName.' broken notify', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_CAPTION' => 'Global '.$tableSoleName.'broken notify caption', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_DESC' => 'Global '.$tableSoleName.'broken notify desc', 'GLOBAL_'.$stuTableSoleName.'BROKEN_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'broken notify subject', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Global '.$tableSoleName.' submit notify', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Global '.$tableSoleName.' submit notify caption', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Global '.$tableSoleName.'submit notify desc', 'GLOBAL_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Global '.$tableSoleName.'submit notify subject', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY' => 'Global new'.$tableSoleName.' notify', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Global new'.$tableSoleName.' notify caption', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Global new'.$tableSoleName.' notify desc', 'GLOBAL_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Global new'.$tableSoleName.' notify subject', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY' => 'Category '.$tableSoleName.'submit notify', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_CAPTION' => 'Category '.$tableSoleName.' submit notify caption', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_DESC' => 'Category '.$tableSoleName.' submit notify desc', 'CATEGORY_'.$stuTableSoleName.'SUBMIT_NOTIFY_SUBJECT' => 'Category '.$tableSoleName.' submit notify subject', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY' => 'Category new'.$tableSoleName.' notify', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_CAPTION' => 'Category new'.$tableSoleName.' notify caption', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_DESC' => 'Category new'.$tableSoleName.' notify desc', 'CATEGORY_NEW'.$stuTableSoleName.'_NOTIFY_SUBJECT' => 'Category new'.$tableSoleName.' notify subject', $stuTableSoleName.'_APPROVE_NOTIFY' => $ucfTableSoleName.' approve notify', $stuTableSoleName.'_APPROVE_NOTIFY_CAPTION' => $ucfTableSoleName.' approve notify caption', $stuTableSoleName.'_APPROVE_NOTIFY_DESC' => $ucfTableSoleName.' approve notify desc', $stuTableSoleName.'_APPROVE_NOTIFY_SUBJECT' => $ucfTableSoleName.' approve notify subject', |
|
| 304 | 304 | ]; |
| 305 | 305 | foreach ($getDefinesNotif as $defn => $descn) { |
| 306 | 306 | $ret .= $df->getDefine($language, $defn, $descn); |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | } |
| 393 | 393 | $content .= $this->getLanguageFooter(); |
| 394 | 394 | |
| 395 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 395 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 396 | 396 | |
| 397 | 397 | return $this->renderFile(); |
| 398 | 398 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $fieldNameDesc = false !== mb_strpos($rpFieldName, '_') ? str_replace('_', ' ', ucfirst($rpFieldName)) : ucfirst($rpFieldName); |
| 178 | 178 | } |
| 179 | 179 | |
| 180 | - $ret .= $this->defines->getDefine($language, $tableSoleName . '_' . $rpFieldName, $fieldNameDesc); |
|
| 180 | + $ret .= $this->defines->getDefine($language, $tableSoleName.'_'.$rpFieldName, $fieldNameDesc); |
|
| 181 | 181 | $stuTableName = mb_strtoupper($tableName); |
| 182 | 182 | |
| 183 | 183 | switch ($fieldElement) { |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | } |
| 274 | 274 | $content .= $this->getLanguageAdminFoot($language); |
| 275 | 275 | |
| 276 | - $this->create($moduleDirname, 'language/' . $GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 276 | + $this->create($moduleDirname, 'language/'.$GLOBALS['xoopsConfig']['language'], $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
|
| 277 | 277 | |
| 278 | 278 | return $this->renderFile(); |
| 279 | 279 | } |