Piwik\Plugin\Report::getDefaultSortColumn PHP Méthode

getDefaultSortColumn() public méthode

    public function getDefaultSortColumn()
    {
        return $this->defaultSortColumn;
    }

Usage Example

 private function getGenericFiltersHavingDefaultValues()
 {
     $filters = self::getGenericFiltersInformation();
     if ($this->report && $this->report->getDefaultSortColumn()) {
         foreach ($filters as $index => $filter) {
             if ($filter[0] === 'Sort') {
                 $filters[$index][1]['filter_sort_column'] = array('string', $this->report->getDefaultSortColumn());
                 $filters[$index][1]['filter_sort_order'] = array('string', $this->report->getDefaultSortOrder());
             }
         }
     }
     return $filters;
 }