Property | Type | Description | |
---|---|---|---|
$enableDispatch | boolean | Set to false and the Front Controller will not dispatch the request |
Method | Description | |
---|---|---|
__destruct ( ) | Called at the end of the page generation | |
dispatch ( string $module = null, string $action = null, array $parameters = null ) : void | mixed | Executes the requested plugin controller method. | |
fetchDispatch ( string $module = null, string $actionName = null, array $parameters = null ) : string | Executes the requested plugin controller method and returns the data, capturing anything the method echos. | |
init ( ) : void | Must be called before dispatch() - checks that directories are writable, - loads the configuration file, - loads the plugin, - inits the DB connection, - etc. | |
setUpSafeMode ( ) | ||
shouldRethrowException ( ) | Should we show exceptions messages directly rather than display an html error page? | |
triggerSafeModeWhenError ( ) |
Method | Description | |
---|---|---|
handleMaintenanceMode ( ) | ||
handleSSLRedirection ( ) | ||
prepareDispatch ( $module, $action, $parameters ) |
Method | Description | |
---|---|---|
closeSessionEarlyForFasterUI ( ) | ||
doDispatch ( $module, $action, $parameters ) : mixed | ||
generateSafeModeOutput ( $lastError ) : mixed | void | ||
handleProfiler ( ) | ||
throwIfPiwikVersionIsOlderThanDBSchema ( ) | This method ensures that Piwik Platform cannot be running when using a NEWER database. |
public dispatch ( string $module = null, string $action = null, array $parameters = null ) : void | mixed | ||
$module | string | The name of the plugin whose controller to execute, eg, `'UserCountryMap'`. |
$action | string | The controller method name, eg, `'realtimeMap'`. |
$parameters | array | 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. |
public fetchDispatch ( string $module = null, string $actionName = null, array $parameters = null ) : string | ||
$module | string | The name of the plugin whose controller to execute, eg, `'UserCountryMap'`. |
$actionName | string | The controller action name, eg, `'realtimeMap'`. |
$parameters | array | Array of parameters to pass to the controller action method. |
return | string | The `echo`'d data or the return value of the controller action. |
public static shouldRethrowException ( ) |
public static bool $enableDispatch | ||
return | boolean |