public static build ( string | null $defaultType = null, boolean | false | string $apiAction = false, boolean | false | string $controllerAction = false, boolean $forceDefault = false, boolean $loadViewDataTableParametersForUser = null ) : ViewDataTable |
$defaultType |
string | null |
A ViewDataTable ID representing the default ViewDataTable type to use. If
the **viewDataTable** query parameter is not found, this value is used as
the ID of the ViewDataTable to create.
If a visualization type is configured for the report being displayed, it
is used instead of the default type. (See {@hook ViewDataTable.getDefaultType}).
If nothing is configured for the report and `null` is supplied for this
argument, **table** is used. |
$apiAction |
boolean | false | string |
The API method for the report that will be displayed, eg,
`'DevicesDetection.getBrowsers'`. |
$controllerAction |
boolean | false | string |
The controller name and action dedicated to displaying the report. This
action is used when reloading reports or changing the report visualization.
Defaulted to `$apiAction` if `false` is supplied. |
$forceDefault |
boolean |
If true, then the visualization type that was configured for the report will be
ignored and `$defaultType` will be used as the default. |
$loadViewDataTableParametersForUser |
boolean |
Whether the per-user parameters for this user, this ViewDataTable and this Api action
should be loaded from the user preferences and override the default params values. |
return |
Piwik\Plugin\ViewDataTable |
|