@@ -66,7 +66,7 @@ |
||
| 66 | 66 | /** |
| 67 | 67 | * @param $module |
| 68 | 68 | * @param $table |
| 69 | - * @param $filename |
|
| 69 | + * @param string $filename |
|
| 70 | 70 | */ |
| 71 | 71 | public function write($module, $filename) |
| 72 | 72 | { |
@@ -38,9 +38,9 @@ discard block |
||
| 38 | 38 | public function __construct() |
| 39 | 39 | { |
| 40 | 40 | parent::__construct(); |
| 41 | - $this->tdmcfile = TDMCreateFile::getInstance(); |
|
| 42 | - $this->xoopscode = TDMCreateXoopsCode::getInstance(); |
|
| 43 | - $this->phpcode = TDMCreatePhpCode::getInstance(); |
|
| 41 | + $this->tdmcfile = TDMCreateFile::getInstance(); |
|
| 42 | + $this->xoopscode = TDMCreateXoopsCode::getInstance(); |
|
| 43 | + $this->phpcode = TDMCreatePhpCode::getInstance(); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /* |
@@ -89,9 +89,9 @@ discard block |
||
| 89 | 89 | $filename = $this->getFileName(); |
| 90 | 90 | $moduleDirname = $module->getVar('mod_dirname'); |
| 91 | 91 | $content = $this->getHeaderFilesComments($module, $filename); |
| 92 | - $isset = $this->phpcode->getPhpCodeIsset("\$templateMain"); |
|
| 93 | - $display = $this->xoopscode->getXoopsCodeTplDisplay(); |
|
| 94 | - $content .= $this->phpcode->getPhpCodeConditions($isset, '', '', $display); |
|
| 92 | + $isset = $this->phpcode->getPhpCodeIsset("\$templateMain"); |
|
| 93 | + $display = $this->xoopscode->getXoopsCodeTplDisplay(); |
|
| 94 | + $content .= $this->phpcode->getPhpCodeConditions($isset, '', '', $display); |
|
| 95 | 95 | $content .= "xoops_cp_footer();"; |
| 96 | 96 | |
| 97 | 97 | $this->tdmcfile->create($moduleDirname, 'admin', $filename, $content, _AM_TDMCREATE_FILE_CREATED, _AM_TDMCREATE_FILE_NOTCREATED); |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $moduleDirname = $module->getVar('mod_dirname'); |
| 91 | 91 | $content = $this->getHeaderFilesComments($module, $filename); |
| 92 | 92 | $isset = $this->phpcode->getPhpCodeIsset("\$templateMain"); |
| 93 | - $display = $this->xoopscode->getXoopsCodeTplDisplay(); |
|
| 93 | + $display = $this->xoopscode->getXoopsCodeTplDisplay(); |
|
| 94 | 94 | $content .= $this->phpcode->getPhpCodeConditions($isset, '', '', $display); |
| 95 | 95 | $content .= "xoops_cp_footer();"; |
| 96 | 96 | |
@@ -564,7 +564,7 @@ |
||
| 564 | 564 | return "\$GLOBALS['xoopsTpl']->appendByRef('{$tplString}', {$phpRender});\n"; |
| 565 | 565 | } |
| 566 | 566 | |
| 567 | - /** |
|
| 567 | + /** |
|
| 568 | 568 | * @public function getXoopsCodeTplDisplay |
| 569 | 569 | * |
| 570 | 570 | * @param null |