PHP Класс Piwik\ViewDataTable\Manager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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:

Приватные методы

Метод Описание
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 )

Описание методов

clearAllViewDataTableParameters() публичный статический Метод

clearUserViewDataTableParameters() публичный статический Метод

public static clearUserViewDataTableParameters ( $userLogin )

configureFooterIcons() публичный статический Метод

$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() публичный статический Метод

Returns all registered visualization classes. Uses the 'Visualization.getAvailable' event to retrieve visualizations.
public static getAvailableViewDataTables ( ) : array
Результат array Array mapping visualization IDs with their associated visualization classes.

getIdsWithInheritance() публичный статический Метод

Returns the viewDataTable IDs of a visualization's class lineage.
См. также: self::getVisualizationClassLineage
public static getIdsWithInheritance ( string $klass ) : array
$klass string The visualization class.
Результат array

getNonCoreViewDataTables() публичный статический Метод

Returns all available visualizations that are not part of the CoreVisualizations plugin.
public static getNonCoreViewDataTables ( ) : array
Результат array Array mapping visualization IDs with their associated visualization classes.

getViewDataTableParameters() публичный статический Метод

public static getViewDataTableParameters ( $login, $controllerAction )

saveViewDataTableParameters() публичный статический Метод

- 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