original_string: 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'));
      }
code: 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'));
      }
code_tokens: 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' ) ) ; }
docstring: Action that switches the maintenance lock on or off.
docstring_tokens: Action that switches the maintenance lock on or off .