@@ -80,14 +80,14 @@ discard block |
||
| 80 | 80 | public function setBaseFoldersFiles($module) |
| 81 | 81 | { |
| 82 | 82 | global $xoopsConfig; |
| 83 | - // Module |
|
| 83 | + // Module |
|
| 84 | 84 | $modId = $module->getVar('mod_id'); |
| 85 | 85 | $language = $xoopsConfig['language']; |
| 86 | 86 | // Id of tables |
| 87 | 87 | $tables = $this->tdmcfile->getTableTables($modId); |
| 88 | 88 | // |
| 89 | 89 | $table = null; |
| 90 | - $tableName = array(); |
|
| 90 | + $tableName = array(); |
|
| 91 | 91 | foreach (array_keys($tables) as $t) { |
| 92 | 92 | $tableId = $tables[$t]->getVar('table_id'); |
| 93 | 93 | $tableName[] = $tables[$t]->getVar('table_name'); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | // |
| 225 | 225 | $table = array(); |
| 226 | 226 | $tableCategory = array(); |
| 227 | - $tableName = array(); |
|
| 227 | + $tableName = array(); |
|
| 228 | 228 | $tableImage = array(); |
| 229 | 229 | $tableAdmin = array(); |
| 230 | 230 | $tableUser = array(); |
@@ -38,12 +38,12 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | private $xoopscode = null; |
| 40 | 40 | |
| 41 | - /* |
|
| 41 | + /* |
|
| 42 | 42 | * @var mixed |
| 43 | 43 | */ |
| 44 | 44 | private $usercode = null; |
| 45 | 45 | |
| 46 | - /* |
|
| 46 | + /* |
|
| 47 | 47 | * @var array |
| 48 | 48 | */ |
| 49 | 49 | private $keywords = array(); |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'about', false, true); |
| 261 | 261 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'header', false, true); |
| 262 | 262 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'index', false, true); |
| 263 | - $tablePermissions = array(); |
|
| 263 | + $tablePermissions = array(); |
|
| 264 | 264 | foreach (array_keys($tables) as $t) { |
| 265 | 265 | $tableName = $tables[$t]->getVar('table_name'); |
| 266 | 266 | $tablePermissions[] = $tables[$t]->getVar('table_permissions'); |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $ret = $this->getHeaderComment('Submenu'); |
| 367 | 367 | $i = 1; |
| 368 | 368 | $tableSubmit = array(); |
| 369 | - foreach (array_keys($tables) as $t) { |
|
| 369 | + foreach (array_keys($tables) as $t) { |
|
| 370 | 370 | $tableName = $tables[$t]->getVar('table_name'); |
| 371 | 371 | $tableSubmit[] = $tables[$t]->getVar('table_submit'); |
| 372 | 372 | if (1 == $tables[$t]->getVar('table_submenu')) { |
@@ -464,9 +464,9 @@ discard block |
||
| 464 | 464 | $ret .= $this->getSimpleString('$c = 1;'); |
| 465 | 465 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
| 466 | 466 | $fieldName = array(); |
| 467 | - $fieldElement = array(); |
|
| 468 | - foreach (array_keys($fields) as $f) { |
|
| 469 | - $fieldName[] = $fields[$f]->getVar('field_name'); |
|
| 467 | + $fieldElement = array(); |
|
| 468 | + foreach (array_keys($fields) as $f) { |
|
| 469 | + $fieldName[] = $fields[$f]->getVar('field_name'); |
|
| 470 | 470 | $fieldElement[] = $fields[$f]->getVar('field_element'); |
| 471 | 471 | } |
| 472 | 472 | if (in_array(4, $fieldElement)) { |
@@ -619,7 +619,7 @@ discard block |
||
| 619 | 619 | $stuTypeOfNotify = strtoupper($typeOfNotify); |
| 620 | 620 | $notifyFile = explode(', ', $notifyFile); |
| 621 | 621 | $notifyFile = implode(', ', $notifyFile); |
| 622 | - $ret = ''; |
|
| 622 | + $ret = ''; |
|
| 623 | 623 | switch ($type) { |
| 624 | 624 | case 'category': |
| 625 | 625 | $ret .= $this->getCommentLine('Category Notify'); |
@@ -661,9 +661,9 @@ discard block |
||
| 661 | 661 | $notifyFiles = array(); |
| 662 | 662 | $single = 'single'; |
| 663 | 663 | $tables = $this->getTableTables($module->getVar('mod_id'), 'table_order'); |
| 664 | - $tableCategory = array(); |
|
| 665 | - $tableBroken = array(); |
|
| 666 | - $tableSubmit = array(); |
|
| 664 | + $tableCategory = array(); |
|
| 665 | + $tableBroken = array(); |
|
| 666 | + $tableSubmit = array(); |
|
| 667 | 667 | foreach (array_keys($tables) as $t) { |
| 668 | 668 | $tableId = $tables[$t]->getVar('table_id'); |
| 669 | 669 | $tableMid = $tables[$t]->getVar('table_mid'); |
@@ -850,19 +850,19 @@ discard block |
||
| 850 | 850 | $language = $this->getLanguage($moduleDirname, 'MI'); |
| 851 | 851 | $content = $this->getHeaderFilesComments($module, $filename); |
| 852 | 852 | $content .= $this->getXoopsVersionHeader($module, $language); |
| 853 | - if (1 == $module->getVar('mod_admin')) { |
|
| 853 | + if (1 == $module->getVar('mod_admin')) { |
|
| 854 | 854 | $content .= $this->getXoopsVersionTemplatesAdmin($moduleDirname, $tables); |
| 855 | 855 | } |
| 856 | 856 | if (1 == $module->getVar('mod_user')) { |
| 857 | 857 | $content .= $this->getXoopsVersionTemplatesUser($moduleDirname, $tables); |
| 858 | 858 | } |
| 859 | 859 | $content .= $this->getXoopsVersionMySQL($moduleDirname, $table, $tables); |
| 860 | - $tableSearch = array(); |
|
| 861 | - $tableComments = array(); |
|
| 862 | - $tableSubmenu = array(); |
|
| 863 | - $tableBlocks = array(); |
|
| 864 | - $tableNotifications = array(); |
|
| 865 | - foreach (array_keys($tables) as $t) { |
|
| 860 | + $tableSearch = array(); |
|
| 861 | + $tableComments = array(); |
|
| 862 | + $tableSubmenu = array(); |
|
| 863 | + $tableBlocks = array(); |
|
| 864 | + $tableNotifications = array(); |
|
| 865 | + foreach (array_keys($tables) as $t) { |
|
| 866 | 866 | $tableSearch[] = $tables[$t]->getVar('table_search'); |
| 867 | 867 | $tableComments[] = $tables[$t]->getVar('table_comments'); |
| 868 | 868 | $tableSubmenu[] = $tables[$t]->getVar('table_submenu'); |