[xoops-cvslog 1209] CVS update: xoops2jp/html/modules/legacyRender/admin/actions

Back to archive index

Minahito minah****@users*****
2005年 11月 25日 (金) 19:28:15 JST


Index: xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderHelpAction.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderHelpAction.class.php:1.1.2.1
--- /dev/null	Fri Nov 25 19:28:15 2005
+++ xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderHelpAction.class.php	Fri Nov 25 19:28:15 2005
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * This action shows easy help to user. Because we does not decide the method of 
+ * multi-language, we does not read text file here.
+ *
+ */
+class LegacyRenderHelpAction extends LegacyRenderAction
+{
+	function getDefaultView(&$controller,&$xoopsUser)
+	{
+		return LEGACY_RENDER_FRAME_VIEW_INDEX;
+	}
+	
+	function execute(&$controller,&$xoopsUser)
+	{
+		return LEGACY_RENDER_FRAME_VIEW_NONE;
+	}
+	
+	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		$renderSystem->setTemplateName("legacy_render_help.html");
+	}
+}
+
+?>
\ No newline at end of file
Index: xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderDefaultAction.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderDefaultAction.class.php:1.1.2.1
--- /dev/null	Fri Nov 25 19:28:15 2005
+++ xoops2jp/html/modules/legacyRender/admin/actions/LegacyRenderDefaultAction.class.php	Fri Nov 25 19:28:15 2005
@@ -0,0 +1,33 @@
+<?php
+
+require_once XOOPS_ROOT_PATH."/modules/legacyRender/admin/class/LegacyTheme.class.php";
+
+/**
+ * This action shows the list of selectable themes to user.
+ */
+class LegacyRenderDefaultAction extends LegacyRenderAction
+{
+	var $mConfig;
+	var $mThemes;
+	
+	function getDefaultView(&$controller,&$xoopsUser)
+	{
+		$themeHandler=new LegacyThemeHandler();
+		$this->mThemes=&$themeHandler->enumAll();
+
+		return LEGACY_RENDER_FRAME_VIEW_INDEX;
+	}
+	
+	function execute(&$controller,&$xoopsUser)
+	{
+		return LEGACY_RENDER_FRAME_VIEW_NONE;
+	}
+	
+	function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem)
+	{
+		$renderSystem->setTemplateName("legacy_render_theme_list.html");
+		$renderSystem->setAttribute("themes",$this->mThemes);
+	}
+}
+
+?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index