| @@ 285-289 (lines=5) @@ | ||
| 282 | $content = $this->getHeaderFilesComments($module, $filename); |
|
| 283 | $content .= $this->getInstallModuleFolder($moduleDirname); |
|
| 284 | ||
| 285 | foreach (array_keys($tables) as $t) { |
|
| 286 | $tableName = $tables[$t]->getVar('table_name'); |
|
| 287 | $tableInstall[] = $tables[$t]->getVar('table_install'); |
|
| 288 | $content .= $this->getInstallTableFolder($moduleDirname, $tableName); |
|
| 289 | } |
|
| 290 | if (in_array(1, $tableInstall)) { |
|
| 291 | $fields = $this->getTableFields($table->getVar('table_mid'), $table->getVar('table_id')); |
|
| 292 | foreach (array_keys($fields) as $f) { |
|
| @@ 263-267 (lines=5) @@ | ||
| 260 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'header', '', true); |
|
| 261 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'index', '', true); |
|
| 262 | $tablePermissions = array(); |
|
| 263 | foreach (array_keys($tables) as $t) { |
|
| 264 | $tableName = $tables[$t]->getVar('table_name'); |
|
| 265 | $tablePermissions[] = $tables[$t]->getVar('table_permissions'); |
|
| 266 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, $tableName, '', true); |
|
| 267 | } |
|
| 268 | if (in_array(1, $tablePermissions)) { |
|
| 269 | $ret .= $this->getXoopsVersionTemplatesLine($moduleDirname, 'permissions', '', true); |
|
| 270 | } |
|