Minahito
minah****@users*****
2006年 6月 6日 (火) 12:05:53 JST
Index: xoops2jp/html/kernel/XCube_ActionFilter.class.php diff -u /dev/null xoops2jp/html/kernel/XCube_ActionFilter.class.php:1.1.2.1 --- /dev/null Tue Jun 6 12:05:53 2006 +++ xoops2jp/html/kernel/XCube_ActionFilter.class.php Tue Jun 6 12:05:53 2006 @@ -0,0 +1,57 @@ +<?php +/** + * @package XCube + * @version $Id: XCube_ActionFilter.class.php,v 1.1.2.1 2006/06/06 03:05:53 minahito Exp $ + */ + +/** + * This class is chained and called by the initialization procedure of the + * controller class. Developers or users can use the subclass of this class for + * dynamic customizing. + * + * Users usually add on no filters because each controllers have initialization + * code enough. This class is used to the case of special customizing by + * modules and users. + * + * Each controllers should not use this class to their initialization procedure. + * + * Two member functions are called by the controller at the special timing. + * These timing is different in each controllers. + */ +class XCube_ActionFilter +{ + /** + * XCube_Controller + * + * @access protected + */ + var $mController; + + /** + * @param $controller XCube_Controller + */ + function XCube_ActionFilter(&$controller) + { + $this->mController =& $controller; + } + + /** + * Execute the logic when preFilter(). + * + * @return void + */ + function preFilter() + { + } + + /** + * Execute the logic when preBlockFilter(). + * + * @return void + */ + function preBlockFilter() + { + } +} + +?>