<?php

if (!defined('XOOPS_ROOT_PATH')) exit();

require_once XLEPROGRESS_TRUST_PATH . '/class/AbstractAction.class.php';

/**
 * Xleprogress_Admin_IndexAction
**/
class Xleprogress_Admin_IndexAction extends Xleprogress_AbstractAction
{
    /**
     * getDefaultView
     * 
     * @param   void
     * 
     * @return  Enum
    **/
    public function getDefaultView()
    {
        return XLEPROGRESS_FRAME_VIEW_SUCCESS;
    }

    /**
     * executeViewSuccess
     * 
     * @param   XCube_RenderTarget  &$render
     * 
     * @return  void
    **/
    public function executeViewSuccess(&$render)
    {
        $render->setTemplateName('admin.html');
        $adminMenu = $this->mModule->getAdminMenu();
        $render->setAttribute('adminMenu', $this->mModule->getAdminMenu());
    }
}

?>
