[xoops-cvslog 1289] CVS update: xoops2jp/html/modules/base/admin/actions

アーカイブの一覧に戻る

Minahito minah****@users*****
2005年 12月 16日 (金) 18:51:21 JST


Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php:1.1.2.1
--- /dev/null	Fri Dec 16 18:51:21 2005
+++ xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php	Fri Dec 16 18:51:21 2005
@@ -0,0 +1,33 @@
+<?php
+/**
+ * @version $Id: LegacyModuleUninstallAction.class.php,v 1.1.2.1 2005/12/16 09:51:21 minahito Exp $
+ */
+
+require_once XOOPS_BASE_PATH."/admin/actions/AbstractModuleInstallAction.class.php";
+require_once XOOPS_BASE_PATH."/admin/class/ModuleUninstaller.class.php";
+
+/**
+ * Uninstall module
+ */
+class LegacyModuleUninstallAction extends Legacy_AbstractModuleInstallAction
+{
+	function &_getInstaller($dirname)
+	{
+		$installer =& new Legacy_ModuleUninstaller($dirname);
+		return $installer;
+	}
+
+	function executeViewSuccess(&$controller,&$xoopsUser,&$renderer)
+	{
+		$renderer->setTemplateName("module_uninstall_success.html");
+		$renderer->setAttribute('log',$this->mLog->mMessages);
+	}
+
+	function executeViewInput(&$controller,&$xoopsUser,&$renderer)
+	{
+		$renderer->setTemplateName("module_uninstall_confirm.html");
+		$renderer->setAttribute('module',$this->mModuleObject);
+	}
+}
+
+?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php
diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php:1.1.2.1
--- /dev/null	Fri Dec 16 18:51:21 2005
+++ xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php	Fri Dec 16 18:51:21 2005
@@ -0,0 +1,33 @@
+<?php
+/**
+ * @version $Id: LegacyModuleUpdateAction.class.php,v 1.1.2.1 2005/12/16 09:51:21 minahito Exp $
+ */
+
+require_once XOOPS_BASE_PATH."/admin/actions/AbstractModuleInstallAction.class.php";
+require_once XOOPS_BASE_PATH."/admin/class/ModuleUpdater.class.php";
+
+/**
+ * ƒ‚ƒWƒ…[ƒ‹‚ðƒAƒbƒvƒf[ƒg‚µ‚Ü‚·
+ */
+class LegacyModuleUpdateAction extends Legacy_AbstractModuleInstallAction
+{
+	function &_getInstaller($dirname)
+	{
+		$installer =& new Legacy_ModuleUpdater($dirname);
+		return $installer;
+	}
+
+	function executeViewSuccess(&$controller,&$xoopsUser,&$renderer)
+	{
+		$renderer->setTemplateName("module_update_success.html");
+		$renderer->setAttribute('log',$this->mLog->mMessages);
+	}
+
+	function executeViewInput(&$controller,&$xoopsUser,&$renderer)
+	{
+		$renderer->setTemplateName("module_update_confirm.html");
+		$renderer->setAttribute('module',$this->mModuleObject);
+	}
+}
+
+?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る