[xoops-cvslog 6208] CVS update: xoops2jp/html/modules/user/admin/actions

Back to archive index

Minahito minah****@users*****
2007年 2月 28日 (水) 19:05:28 JST


Index: xoops2jp/html/modules/user/admin/actions/MailjobViewAction.class.php
diff -u /dev/null xoops2jp/html/modules/user/admin/actions/MailjobViewAction.class.php:1.1.2.1
--- /dev/null	Wed Feb 28 19:05:28 2007
+++ xoops2jp/html/modules/user/admin/actions/MailjobViewAction.class.php	Wed Feb 28 19:05:28 2007
@@ -0,0 +1,40 @@
+<?php
+/**
+ * @package user
+ */
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+require_once XOOPS_MODULE_PATH . "/user/class/AbstractViewAction.class.php";
+
+class User_MailjobViewAction extends User_AbstractViewAction
+{
+	function _getId()
+	{
+		return xoops_getrequest('mailjob_id');
+	}
+
+	function &_getHandler()
+	{
+		$handler =& xoops_getmodulehandler('mailjob');
+		return $handler;
+	}
+	
+	function getDefaultView(&$controller, &$xoopsUser)
+	{
+		return USER_FRAME_VIEW_SUCCESS;
+	}
+	
+	function executeViewSuccess(&$controller, &$xoopsUser, &$render)
+	{
+		$render->setTemplateName("mailjob_view.html");
+		$render->setAttribute('object', $this->mObject);
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeRedirect("./index.php?action=MailjobList", 1, _AD_USER_ERROR_CONTENT_IS_NOT_FOUND);
+	}
+}
+
+?>


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