[xoops-cvslog 1746] CVS update: xoops2jp/html/modules/legacyRender/admin/class

Back to archive index

Minahito minah****@users*****
2006年 1月 14日 (土) 17:15:57 JST


Index: xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php:1.1.2.1
--- /dev/null	Sat Jan 14 17:15:57 2006
+++ xoops2jp/html/modules/legacyRender/admin/class/AbstractListAction.class.php	Sat Jan 14 17:15:57 2006
@@ -0,0 +1,40 @@
+<?php
+
+class LegacyRender_AbstractListAction extends LegacyRender_Action
+{
+	var $mObjects = array();
+	var $mFilter = null;
+	var $mActionForm = null;
+
+	function &_getHandler()
+	{
+	}
+
+	function &_getFilterForm()
+	{
+	}
+	
+	function _getBaseUrl()
+	{
+	}
+
+	function getDefaultView(&$controller, &$xoopsUser)
+	{
+		$this->mFilter =& $this->_getFilterForm();
+		$this->mFilter->fetch();
+	
+		$handler =& $this->_getHandler();
+	
+		$total = $handler->getCount($this->mFilter->getCriteria());
+		
+		$this->mPageNavi =& new XCube_PageNavigator($this->_getBaseUrl(), $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE);
+		$this->mPageNavi->fetch();
+		
+		$criteria = $this->mFilter->getCriteria($this->mPageNavi->getStart(), $this->mPageNavi->getPerpage());
+		$this->mObjects =& $handler->getObjects($criteria);
+	
+		return LEGACYRENDER_FRAME_VIEW_INDEX;
+	}
+}
+
+?>
\ No newline at end of file


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