프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$enableDispatch | boolean | Set to false and the Front Controller will not dispatch the request |
메소드 | 설명 | |
---|---|---|
__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 ( ) |
메소드 | 설명 | |
---|---|---|
handleMaintenanceMode ( ) | ||
handleSSLRedirection ( ) | ||
prepareDispatch ( $module, $action, $parameters ) |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | string | The `echo`'d data or the return value of the controller action. |
public static shouldRethrowException ( ) |
public static bool $enableDispatch | ||
리턴 | boolean |