fetch() public method

Fetches the report represented by this instance.
public fetch ( array $paramOverride = [] ) : DataTable
$paramOverride array Query parameter overrides.
return Piwik\DataTable
Ejemplo n.º 1
0
 private function fetchIntersectedWithThisBySegment(DataTable $table, $segmentValue)
 {
     $segmentStr = $this->thisReportDimensionSegment->getSegment() . "==" . urlencode($segmentValue);
     // TODO: segment + report API method query params should be stored in DataTable metadata so we don't have to access it here
     $originalSegment = Common::getRequestVar('segment', false);
     if (!empty($originalSegment)) {
         $segmentStr = $originalSegment . ';' . $segmentStr;
     }
     Log::debug("PivotByDimension: Fetching intersected with segment '%s'", $segmentStr);
     $params = array('segment' => $segmentStr) + $this->getRequestParamOverride($table);
     return $this->pivotDimensionReport->fetch($params);
 }