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

Back to archive index

Minahito minah****@users*****
2006年 5月 17日 (水) 12:09:35 JST


Index: xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php
diff -u xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.3
--- xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.2	Mon May 15 17:40:13 2006
+++ xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php	Wed May 17 12:09:34 2006
@@ -24,6 +24,22 @@
 	{
 		return "./index.php?action=ImageList";
 	}
+	
+	function getDefaultView(&$contoller, &$xoopsUser)
+	{
+		$result = parent::getDefaultView($controller, $xoopsUser);
+		if ($result == LEGACY_FRAME_VIEW_INDEX) {
+			$cat_id = xoops_getrequest('imgcat_id');
+			$handler =& xoops_getmodulehandler('imagecategory');
+			$this->mCategory =& $handler->get($cat_id);
+			
+			if ($this->mCategory == null) {
+				$result = LEGACY_FRAME_VIEW_ERROR;
+			}
+		}
+		
+		return $result;
+	}
 
 	function executeViewIndex(&$controller, &$xoopsUser, &$render)
 	{
@@ -35,6 +51,13 @@
 		
 		$render->setAttribute("objects", $this->mObjects);
 		$render->setAttribute("pageNavi", $this->mNavi);
+		
+		$render->setAttribute("category", $this->mCategory);
+	}
+
+	function executeViewError(&$controller, &$xoopsUser, &$render)
+	{
+		$controller->executeForward("./index.php?Action=ImagecategoryList");
 	}
 }
 


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