public function maintenanceAction()
    {
        // Switch lock
        if ($this->util->getMonitor()->reverseMaintenanceMonitor()) {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set ON'));
        } else {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set OFF'));

            // Dump the existing maintenance mode messages.
            $this->escort->getMessenger()->clearCurrentMessages();
            $this->escort->getMessenger()->clearMessages();
            \MUtil_Echo::out();
        }

        // Redirect
        $request = $this->getRequest();
        $this->_reroute(array($request->getActionKey() => 'index'));
    }
public function maintenanceAction()
    {
        // Switch lock
        if ($this->util->getMonitor()->reverseMaintenanceMonitor()) {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set ON'));
        } else {
            $this->accesslog->logChange($this->getRequest(), $this->_('Maintenance mode set OFF'));

            // Dump the existing maintenance mode messages.
            $this->escort->getMessenger()->clearCurrentMessages();
            $this->escort->getMessenger()->clearMessages();
            \MUtil_Echo::out();
        }

        // Redirect
        $request = $this->getRequest();
        $this->_reroute(array($request->getActionKey() => 'index'));
    }
public function maintenanceAction ( ) { // Switch lock if ( $ this -> util -> getMonitor ( ) -> reverseMaintenanceMonitor ( ) ) { $ this -> accesslog -> logChange ( $ this -> getRequest ( ) , $ this -> _ ( 'Maintenance mode set ON' ) ) ; } else { $ this -> accesslog -> logChange ( $ this -> getRequest ( ) , $ this -> _ ( 'Maintenance mode set OFF' ) ) ; // Dump the existing maintenance mode messages. $ this -> escort -> getMessenger ( ) -> clearCurrentMessages ( ) ; $ this -> escort -> getMessenger ( ) -> clearMessages ( ) ; \ MUtil_Echo :: out ( ) ; } // Redirect $ request = $ this -> getRequest ( ) ; $ this -> _reroute ( array ( $ request -> getActionKey ( ) => 'index' ) ) ; }
Action that switches the maintenance lock on or off.
Action that switches the maintenance lock on or off .