/** * Index, gateway for this web application * While the operator is not logged in, direct to login action * While the operator has been logged in but is locked, direct to account action in admin controller * Otherwise, direct to dashboard action * @see Zend_Controller_Action_Helper_ActionStack::direct() for more detail * * @return void */ public function indexAction() { $this->getHelper('viewRenderer')->setNoRender(); $request = $this->getRequest(); $actionStackHelper = $this->getHelper('actionStack'); if (SwIRS_Web_Request::isVisitor($request)) { $actionStackHelper->direct('login', null, null); } elseif (SwIRS_Web_Request::isProvisional($request)) { $actionStackHelper->direct('account', 'admin', null); } else { $actionStackHelper->direct('dashboard', null, null); } }