PHP Класс Piwik\Plugin\ReportsProvider

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

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

Метод Описание
compareCategories ( $catIdA, $subcatIdA, $orderA, $catIdB, $subcatIdB, $orderB )
factory ( string $module, string $action ) : null | Report Get an instance of a specific report belonging to the given module and having the given action.
getAllReportClasses ( ) : string[] Returns class names of all Report metadata classes.
getAllReports ( ) : Report[] Returns a list of all available reports. Even not enabled reports will be returned. They will be already sorted depending on the order and category of the report.

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

Метод Описание
getMapOfModuleActionsToReport ( )
sort ( Report $a, Report $b ) : integer API metadata are sorted by category/name, with a little tweak to replicate the standard Piwik category ordering

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

compareCategories() публичный Метод

public compareCategories ( $catIdA, $subcatIdA, $orderA, $catIdB, $subcatIdB, $orderB )

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

Get an instance of a specific report belonging to the given module and having the given action.
public static factory ( string $module, string $action ) : null | Report
$module string
$action string
Результат null | Report

getAllReportClasses() публичный Метод

Returns class names of all Report metadata classes.
public getAllReportClasses ( ) : string[]
Результат string[]

getAllReports() публичный Метод

Returns a list of all available reports. Even not enabled reports will be returned. They will be already sorted depending on the order and category of the report.
public getAllReports ( ) : Report[]
Результат Report[]