public getSubtableDimension ( ) : |
||
Résultat | The subtable report's dimension or null if there is subtable report or no dimension for the subtable report. |
public function getSubtableDimension()
{
if (empty($this->actionToLoadSubTables)) {
return null;
}
list($subtableReportModule, $subtableReportAction) = $this->getSubtableApiMethod();
$subtableReport = ReportsProvider::factory($subtableReportModule, $subtableReportAction);
if (empty($subtableReport)) {
return null;
}
return $subtableReport->getDimension();
}
/** * 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. * * @param Report $report * @return bool */ public static function isPivotingReportBySubtableSupported(Report $report) { return self::areDimensionsNotEqualAndNotNull($report->getSubtableDimension(), $report->getDimension()); }