PHP Класс Piwik\Plugins\Insights\Model

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

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

Метод Описание
__construct ( ProcessedReport $processedReport )
getLastDate ( $date, $period, $comparedToXPeriods )
getMetricTotalValue ( DataTable $currentReport, $metric )
getRelevantTotalValue ( DataTable $currentReport, $metric, $totalValue ) Returns either the $totalValue (eg 5500 visits) or the total value of the report (eg 2500 visits of 5500 total visits as for instance only 2500 visits came to the website using a search engine).
getReportByUniqueId ( $idSite, $reportUniqueId )
getTotalValue ( $idSite, $period, $date, $metric, $segment )
requestReport ( $idSite, $period, $date, $reportUniqueId, $metric, $segment )

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

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

public __construct ( ProcessedReport $processedReport )
$processedReport Piwik\Plugins\API\ProcessedReport

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

public getLastDate ( $date, $period, $comparedToXPeriods )

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

public getMetricTotalValue ( DataTable $currentReport, $metric )
$currentReport Piwik\DataTable

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

If the metric total (2500) is much lower than $totalValue, the metric total will be returned, otherwise the $totalValue
public getRelevantTotalValue ( DataTable $currentReport, $metric, $totalValue )
$currentReport Piwik\DataTable

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

public getReportByUniqueId ( $idSite, $reportUniqueId )

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

public getTotalValue ( $idSite, $period, $date, $metric, $segment )

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

public requestReport ( $idSite, $period, $date, $reportUniqueId, $metric, $segment )