isPivotingReportBySubtableSupported() public static méthode

Returns true if pivoting by subtable is supported for a report. Will return true if the report has a subtable dimension and if the subtable dimension is different than the report's dimension.
public static isPivotingReportBySubtableSupported ( Report $report ) : boolean
$report Piwik\Plugin\Report
Résultat boolean
Exemple #1
0
 private function setShouldShowPivotBySubtable()
 {
     $report = Report::factory($this->controllerName, $this->controllerAction);
     if (empty($report)) {
         $this->show_pivot_by_subtable = false;
         $this->pivot_by_dimension = false;
     } else {
         $this->show_pivot_by_subtable = PivotByDimension::isPivotingReportBySubtableSupported($report);
         $subtableDimension = $report->getSubtableDimension();
         if (!empty($subtableDimension)) {
             $this->pivot_by_dimension = $subtableDimension->getId();
             $this->pivot_dimension_name = $subtableDimension->getName();
         }
     }
 }