| @@ 109-114 (lines=6) @@ | ||
| 106 | $ret .= $this->phpcode->getPhpCodeCommentLine('Get instance of module'); |
|
| 107 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator("\${$moduleDirname} ", "{$ucfModuleDirname}Helper::getInstance()"); |
|
| 108 | } |
|
| 109 | if (is_array($tables)) { |
|
| 110 | foreach (array_keys($tables) as $i) { |
|
| 111 | $tableName = $tables[$i]->getVar('table_name'); |
|
| 112 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator("\${$tableName}Handler ", "\${$moduleDirname}->getHandler('{$tableName}')", true); |
|
| 113 | } |
|
| 114 | } |
|
| 115 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$myts', 'MyTextSanitizer::getInstance()', true); |
|
| 116 | $ret .= $this->phpcode->getPhpCodeCommentLine(); |
|
| 117 | $template = $this->phpcode->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/template', true); |
|
| @@ 105-110 (lines=6) @@ | ||
| 102 | if (is_object($table) && $table->getVar('table_name') != '') { |
|
| 103 | $ret .= $this->xoopscode->getXoopsHandlerInstance($moduleDirname); |
|
| 104 | } |
|
| 105 | if (is_array($tables)) { |
|
| 106 | foreach (array_keys($tables) as $i) { |
|
| 107 | $tableName = $tables[$i]->getVar('table_name'); |
|
| 108 | $ret .= $this->xoopscode->getXoopsHandlerLine($moduleDirname, $tableName); |
|
| 109 | } |
|
| 110 | } |
|
| 111 | $ret .= $this->getCommentLine('Permission'); |
|
| 112 | $ret .= $this->phpcode->getPhpCodeIncludeDir('XOOPS_ROOT_PATH', 'class/xoopsform/grouppermform', true); |
|
| 113 | $ret .= $this->xoopscode->getXoopsCodeEqualsOperator('$gpermHandler', "xoops_gethandler('groupperm')", true); |
|