isSegmentFetchingEnabledInConfig() public static méthode

Returns true if fetching intersected tables by segment is enabled in the INI config, false if otherwise.
public static isSegmentFetchingEnabledInConfig ( ) : boolean
Résultat boolean
 private function handleDataTable(DataTableInterface $datatable)
 {
     $label = $this->getLabelFromRequest($this->request);
     // handle pivot by dimension filter
     $pivotBy = Common::getRequestVar('pivotBy', false, 'string', $this->request);
     if (!empty($pivotBy)) {
         $reportId = $this->apiModule . '.' . $this->apiMethod;
         $pivotByColumn = Common::getRequestVar('pivotByColumn', false, 'string', $this->request);
         $pivotByColumnLimit = Common::getRequestVar('pivotByColumnLimit', false, 'int', $this->request);
         $datatable->filter('PivotByDimension', array($reportId, $pivotBy, $pivotByColumn, $pivotByColumnLimit, PivotByDimension::isSegmentFetchingEnabledInConfig()));
     }
     // if requested, flatten nested tables
     if (Common::getRequestVar('flat', '0', 'string', $this->request) == '1') {
         $flattener = new Flattener($this->apiModule, $this->apiMethod, $this->request);
         if (Common::getRequestVar('include_aggregate_rows', '0', 'string', $this->request) == '1') {
             $flattener->includeAggregateRows();
         }
         $datatable = $flattener->flatten($datatable);
     }
     if (1 == Common::getRequestVar('totals', '1', 'integer', $this->request)) {
         $genericFilter = new ReportTotalsCalculator($this->apiModule, $this->apiMethod, $this->request);
         $datatable = $genericFilter->calculate($datatable);
     }
     // if the flag disable_generic_filters is defined we skip the generic filters
     if (0 == Common::getRequestVar('disable_generic_filters', '0', 'string', $this->request)) {
         $genericFilter = new DataTableGenericFilter($this->request);
         if (!empty($label)) {
             $genericFilter->disableFilters(array('Limit', 'Truncate'));
         }
         $genericFilter->filter($datatable);
     }
     // we automatically safe decode all datatable labels (against xss)
     $datatable->queueFilter('SafeDecodeLabel');
     // if the flag disable_queued_filters is defined we skip the filters that were queued
     if (Common::getRequestVar('disable_queued_filters', 0, 'int', $this->request) == 0) {
         $datatable->applyQueuedFilters();
     }
     // use the ColumnDelete filter if hideColumns/showColumns is provided (must be done
     // after queued filters are run so processed metrics can be removed, too)
     $hideColumns = Common::getRequestVar('hideColumns', '', 'string', $this->request);
     $showColumns = Common::getRequestVar('showColumns', '', 'string', $this->request);
     if ($hideColumns !== '' || $showColumns !== '') {
         $datatable->filter('ColumnDelete', array($hideColumns, $showColumns));
     }
     // apply label filter: only return rows matching the label parameter (more than one if more than one label)
     if (!empty($label)) {
         $addLabelIndex = Common::getRequestVar('labelFilterAddLabelIndex', 0, 'int', $this->request) == 1;
         $filter = new LabelFilter($this->apiModule, $this->apiMethod, $this->request);
         $datatable = $filter->filter($label, $datatable, $addLabelIndex);
     }
     return $this->apiRenderer->renderDataTable($datatable);
 }
 /**
  * @param DataTableInterface $dataTable
  * @return DataTableInterface
  */
 public function applyPivotByFilter(DataTableInterface $dataTable)
 {
     $pivotBy = Common::getRequestVar('pivotBy', false, 'string', $this->request);
     if (!empty($pivotBy)) {
         $this->applyComputeProcessedMetrics($dataTable);
         $reportId = $this->apiModule . '.' . $this->apiMethod;
         $pivotByColumn = Common::getRequestVar('pivotByColumn', false, 'string', $this->request);
         $pivotByColumnLimit = Common::getRequestVar('pivotByColumnLimit', false, 'int', $this->request);
         $dataTable->filter('ColumnCallbackDeleteMetadata', array('segmentValue'));
         $dataTable->filter('ColumnCallbackDeleteMetadata', array('segment'));
         $dataTable->filter('PivotByDimension', array($reportId, $pivotBy, $pivotByColumn, $pivotByColumnLimit, PivotByDimension::isSegmentFetchingEnabledInConfig()));
     }
     return $dataTable;
 }