PHP Class Piwik\ViewDataTable\Manager

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
clearAllViewDataTableParameters ( )
clearUserViewDataTableParameters ( $userLogin )
configureFooterIcons ( ViewDataTable $view ) This method determines the default set of footer icons to display below a report.
getAvailableViewDataTables ( ) : array Returns all registered visualization classes. Uses the 'Visualization.getAvailable' event to retrieve visualizations.
getIdsWithInheritance ( string $klass ) : array Returns the viewDataTable IDs of a visualization's class lineage.
getNonCoreViewDataTables ( ) : array Returns all available visualizations that are not part of the CoreVisualizations plugin.
getViewDataTableParameters ( $login, $controllerAction )
saveViewDataTableParameters ( $login, $controllerAction, $parametersToOverride ) Any parameter set here will be set into one of the following objects:

Private Methods

Méthode Description
buildViewDataTableParametersOptionKey ( $login, $controllerAction )
errorWhenSettingNonOverridableParameter ( $controllerAction, $params ) Display a meaningful error message when any invalid parameter is being set.
getFooterIconFor ( string $viewDataTableId ) : array Returns an array with information necessary for adding the viewDataTable to the footer.
getGraphViewIcons ( ViewDataTable $view )
getNormalViewIcons ( ViewDataTable $view )
makeTemporaryViewDataTableInstance ( $controllerAction, $params ) : ViewDataTable
removeNonOverridableParameters ( $controllerAction, $params )

Method Details

clearAllViewDataTableParameters() public static méthode

clearUserViewDataTableParameters() public static méthode

public static clearUserViewDataTableParameters ( $userLogin )

configureFooterIcons() public static méthode

$result has the following format: array( array( // footer icon group 1 'class' => 'footerIconGroup1CssClass', 'buttons' => array( 'id' => 'myid', 'title' => 'My Tooltip', 'icon' => 'path/to/my/icon.png' ) ), array( // footer icon group 2 'class' => 'footerIconGroup2CssClass', 'buttons' => array(...) ), ... )
public static configureFooterIcons ( ViewDataTable $view )
$view Piwik\Plugin\ViewDataTable

getAvailableViewDataTables() public static méthode

Returns all registered visualization classes. Uses the 'Visualization.getAvailable' event to retrieve visualizations.
public static getAvailableViewDataTables ( ) : array
Résultat array Array mapping visualization IDs with their associated visualization classes.

getIdsWithInheritance() public static méthode

Returns the viewDataTable IDs of a visualization's class lineage.
See also: self::getVisualizationClassLineage
public static getIdsWithInheritance ( string $klass ) : array
$klass string The visualization class.
Résultat array

getNonCoreViewDataTables() public static méthode

Returns all available visualizations that are not part of the CoreVisualizations plugin.
public static getNonCoreViewDataTables ( ) : array
Résultat array Array mapping visualization IDs with their associated visualization classes.

getViewDataTableParameters() public static méthode

public static getViewDataTableParameters ( $login, $controllerAction )

saveViewDataTableParameters() public static méthode

- ViewDataTable.requestConfig[paramName] - ViewDataTable.config.custom_parameters[paramName] - ViewDataTable.config.custom_parameters[paramName] (see ViewDataTable::overrideViewPropertiesWithParams)
public static saveViewDataTableParameters ( $login, $controllerAction, $parametersToOverride )
$login
$controllerAction
$parametersToOverride