* @copyright 2010 suin
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2
*
*/
class RapidModuleUpdator extends XCube_ActionFilter
{
protected $blockInstance = null;
public function preFilter()
{
$this->mRoot->mDelegateManager->add('Legacy_ActionFrame.CreateAction', array($this, 'onCreateAction'));
$this->mRoot->mDelegateManager->add('Legacy_AdminControllerStrategy.SetupBlock', array($this, 'onSetupBlock'));
}
public function onCreateAction($action)
{
if ( $action->mActionName !== 'ModuleList' )
{
return;
}
}
public function onSetupBlock($controller)
{
$this->blockInstance = new RapidModuleUpdator_Block();
$this->mController->_mBlockChain[] =& $this->blockInstance;
}
}
class RapidModuleUpdator_Block extends Legacy_AbstractBlockProcedure
{
function getName()
{
return "RapidModuleUpdator_Block";
}
function getTitle()
{
return "RapidModuleUpdator_Block";
}
function getEntryIndex()
{
return 0;
}
function isEnableCache()
{
return false;
}
function execute()
{
ob_start();
?>
getRenderTarget();
$render->setResult($result);
}
function hasResult()
{
return true;
}
function &getResult()
{
$dmy = "dummy";
return $dmy;
}
function getRenderSystemName()
{
return 'Legacy_AdminRenderSystem';
}
}