36 public function _setupActionForm()
39 $this->mActionForm->prepare();
42 public function _loadAgreement()
44 $root =& XCube_Root::getSingleton();
46 $this->mLicence = $this->mModuleObject->modinfo[
'installer'][
'licence'][
'title'];
48 $file = $this->mModuleObject->modinfo[
'installer'][
'licence'][
'file'];
49 $language = $root->mContext->getXoopsConfig(
'language');
54 $path = XOOPS_MODULE_PATH .
'/' . $this->mModuleObject->get(
'dirname') .
'/language/' . $language .
'/' . $file;
55 if (!file_exists($path)) {
56 $path = XOOPS_MODULE_PATH .
'/' . $this->mModuleObject->get(
'dirname') .
'/language/english/' . $file;
57 if (!file_exists($path)) {
62 $this->mLicenceText = file_get_contents($path);
65 public function executeViewSuccess(&$controller, &$xoopsUser, &$render)
67 $render->setTemplateName(
'module_install_success.html');
68 $render->setAttribute(
'log', $this->mLog->mMessages);
71 public function executeViewIndex(&$controller, &$xoopsUser, &$render)
73 $render->setAttribute(
'module', $this->mModuleObject);
74 $render->setAttribute(
'actionForm', $this->mActionForm);
76 if (isset($this->mModuleObject->modinfo[
'installer'])) {
77 $render->setAttribute(
'image', $this->mModuleObject->modinfo[
'installer'][
'image']);
78 $render->setAttribute(
'description', $this->mModuleObject->modinfo[
'installer'][
'description']);
79 $render->setTemplateName(
'install_wizard.html');
81 $controller->executeForward(
'index.php?action=ModuleInstall&dirname=' . $this->mModuleObject->get(
'dirname'));
85 public function executeViewInput(&$controller, &$xoopsUser, &$render)
87 $render->setTemplateName(
'install_wizard_licence.html');
88 $render->setAttribute(
'module', $this->mModuleObject);
89 $render->setAttribute(
'actionForm', $this->mActionForm);
90 $render->setAttribute(
'licence', $this->mLicence);
91 $render->setAttribute(
'licenceText', $this->mLicenceText);