OSDN Git Service

Initial commit at SoulDrops 2nd season analyzer module.
[mulab/sd2nd.git] / trust_path / modules / sd2nd / actions / ActiveAbilityListAction.class.php
1 <?php
2 /**
3  * @file
4  * @package sd2nd
5  * @version $Id$
6 **/
7
8 if(!defined('XOOPS_ROOT_PATH'))
9 {
10     exit;
11 }
12
13 require_once SD2ND_TRUST_PATH . '/class/AbstractListAction.class.php';
14
15 /**
16  * Sd2nd_ActiveAbilityListAction
17 **/
18 class Sd2nd_ActiveAbilityListAction extends Sd2nd_AbstractListAction
19 {
20     /**
21      * &_getHandler
22      * 
23      * @param   void
24      * 
25      * @return  Sd2nd_ActiveAbilityHandler
26     **/
27     protected function &_getHandler()
28     {
29         $handler =& $this->mAsset->getObject('handler', 'char');
30         return $handler;
31     }
32
33     /**
34      * &_getFilterForm
35      * 
36      * @param   void
37      * 
38      * @return  Sd2nd_ActiveAbilityFilterForm
39     **/
40     protected function &_getFilterForm()
41     {
42         // $filter =& new Sd2nd_ActiveAbilityFilterForm();
43         $filter =& $this->mAsset->getObject('filter', 'activeAbility',false);
44         $filter->prepare($this->_getPageNavi(), $this->_getHandler());
45         return $filter;
46     }
47
48     /**
49      * _getBaseUrl
50      * 
51      * @param   void
52      * 
53      * @return  string
54     **/
55     protected function _getBaseUrl()
56     {
57         return './index.php?action=ActiveAbilityList';
58     }
59
60     /**
61      * getDefaultView
62      * 
63      * @param   void
64      * 
65      * @return  Enum
66     **/
67     public function getDefaultView()
68     {
69         $this->mFilter =& $this->_getFilterForm();
70         $this->mFilter->fetch();
71         
72         $handler =& $this->_getHandler();
73         $this->mObjects =& $handler->getActiveAbility($this->mFilter->getCriteria());
74         
75         return SD2ND_FRAME_VIEW_INDEX;
76     }
77
78     /**
79      * executeViewIndex
80      * 
81      * @param   XCube_RenderTarget  &$render
82      * 
83      * @return  void
84     **/
85     public function executeViewIndex(/*** XCube_RenderTarget ***/ &$render)
86     {
87         $render->setTemplateName($this->mAsset->mDirname . '_active_ability_list.html');
88         #cubson::lazy_load_array('active_ability', $this->mObjects);
89         $render->setAttribute('objects', $this->mObjects);
90         $render->setAttribute('pageNavi', $this->mFilter->mNavi);
91     }
92 }
93
94 ?>