Minahito
minah****@users*****
2006年 1月 19日 (木) 21:06:46 JST
Index: xoops2jp/html/modules/user/admin/actions/UserDefaultAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserDefaultAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/UserDefaultAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserDefaultAction.class.php:1.1.2.3 Sun Dec 25 00:01:51 2005 +++ xoops2jp/html/modules/user/admin/actions/UserDefaultAction.class.php Thu Jan 19 21:06:46 2006 @@ -1,52 +0,0 @@ -<?php - -require_once XOOPS_ROOT_PATH."/class/XCube_PageNavigator.class.php"; -require_once XOOPS_ROOT_PATH."/modules/user/admin/forms/UserActionFilterForm.class.php"; - -class UserDefaultAction extends UserAction -{ - var $mUserObjects=array(); - var $mFilter=null; - var $mPageNavi=null; - - function isSecure() - { - return true; - } - - function getDefaultView(&$controller,&$xoopsUser) - { - $this->mFilter=new UserActionFilterForm(); - $this->mFilter->fetch(); - - $userHandler=&xoops_gethandler('user'); - $total=&$userHandler->getCount(); - - $this->mPageNavi=new XCube_PageNavigator("./index.php",$total,XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? - $this->mPageNavi->fetch(); - - $criteria=new Criteria("uid",0,">"); // dmy - - $criteria->setSort($this->mFilter->getSort()); - $criteria->setOrder($this->mFilter->getOrder()); - $criteria->setStart($this->mPageNavi->getStart()); - $criteria->setLimit($this->mPageNavi->getPerpage()); - - $this->mUserObjects=$userHandler->getObjects($criteria); - - return USER_FRAME_VIEW_INDEX; - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - } - - function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_list.html"); - $renderSystem->setAttribute("users",$this->mUserObjects); - $renderSystem->setAttribute("pageNavi",$this->mPageNavi); - } -} - -?> \ No newline at end of file