PHP Class Piwik\Plugins\Insights\Model

显示文件 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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

getLastDate() public method

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

getMetricTotalValue() public method

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

getRelevantTotalValue() public method

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 method

public getReportByUniqueId ( $idSite, $reportUniqueId )

getTotalValue() public method

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

requestReport() public method

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