original_string: public function dispatch($module = null, $action = null, $parameters = null)
      {
          if (self::$enableDispatch === false) {
              return;
          }
  
          $filter = new Router();
          $redirection = $filter->filterUrl(Url::getCurrentUrl());
          if ($redirection !== null) {
              Url::redirectToUrl($redirection);
              return;
          }
  
          try {
              $result = $this->doDispatch($module, $action, $parameters);
              return $result;
          } catch (NoAccessException $exception) {
              Log::debug($exception);
  
              /**
               * Triggered when a user with insufficient access permissions tries to view some resource.
               *
               * This event can be used to customize the error that occurs when a user is denied access
               * (for example, displaying an error message, redirecting to a page other than login, etc.).
               *
               * @param \Piwik\NoAccessException $exception The exception that was caught.
               */
              Piwik::postEvent('User.isNotAuthorized', array($exception), $pending = true);
          } catch (\Twig_Error_Runtime $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          } catch(StylesheetLessCompileException $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          } catch(\Error $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          }
      }
code: public function dispatch($module = null, $action = null, $parameters = null)
      {
          if (self::$enableDispatch === false) {
              return;
          }
  
          $filter = new Router();
          $redirection = $filter->filterUrl(Url::getCurrentUrl());
          if ($redirection !== null) {
              Url::redirectToUrl($redirection);
              return;
          }
  
          try {
              $result = $this->doDispatch($module, $action, $parameters);
              return $result;
          } catch (NoAccessException $exception) {
              Log::debug($exception);
  
              /**
               * Triggered when a user with insufficient access permissions tries to view some resource.
               *
               * This event can be used to customize the error that occurs when a user is denied access
               * (for example, displaying an error message, redirecting to a page other than login, etc.).
               *
               * @param \Piwik\NoAccessException $exception The exception that was caught.
               */
              Piwik::postEvent('User.isNotAuthorized', array($exception), $pending = true);
          } catch (\Twig_Error_Runtime $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          } catch(StylesheetLessCompileException $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          } catch(\Error $e) {
              echo $this->generateSafeModeOutputFromException($e);
              exit;
          }
      }
code_tokens: public function dispatch ( $ module = null , $ action = null , $ parameters = null ) { if ( self :: $ enableDispatch === false ) { return ; } $ filter = new Router ( ) ; $ redirection = $ filter -> filterUrl ( Url :: getCurrentUrl ( ) ) ; if ( $ redirection !== null ) { Url :: redirectToUrl ( $ redirection ) ; return ; } try { $ result = $ this -> doDispatch ( $ module , $ action , $ parameters ) ; return $ result ; } catch ( NoAccessException $ exception ) { Log :: debug ( $ exception ) ; /**
               * Triggered when a user with insufficient access permissions tries to view some resource.
               *
               * This event can be used to customize the error that occurs when a user is denied access
               * (for example, displaying an error message, redirecting to a page other than login, etc.).
               *
               * @param \Piwik\NoAccessException $exception The exception that was caught.
               */ Piwik :: postEvent ( 'User.isNotAuthorized' , array ( $ exception ) , $ pending = true ) ; } catch ( \ Twig_Error_Runtime $ e ) { echo $ this -> generateSafeModeOutputFromException ( $ e ) ; exit ; } catch ( StylesheetLessCompileException $ e ) { echo $ this -> generateSafeModeOutputFromException ( $ e ) ; exit ; } catch ( \ Error $ e ) { echo $ this -> generateSafeModeOutputFromException ( $ e ) ; exit ; } }
docstring: Executes the requested plugin controller method.
  
  @throws Exception|\Piwik\Exception\PluginDeactivatedException in case the plugin doesn't exist, the action doesn't exist,
  there is not enough permission, etc.
  
  @param string $module The name of the plugin whose controller to execute, eg, `'UserCountryMap'`.
  @param string $action The controller method name, eg, `'realtimeMap'`.
  @param array $parameters Array of parameters to pass to the controller method.
  @return void|mixed The returned value of the call. This is the output of the controller method.
  @api
docstring_tokens: Executes the requested plugin controller method .