Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-03-16 06:12:02 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-03-16 06:12:02 +0300
commit54ac2bf9d949d45eb756768003a0d4e0008e0a61 (patch)
tree2842cc3cd4911dd5b473eb20302f97ecaa8f09b4 /core/Plugin/Report.php
parentfe85ab09c24dc41a69bb08e39ac5ea41c43a4f66 (diff)
possibility to define a default sort order in a report class
Diffstat (limited to 'core/Plugin/Report.php')
-rw-r--r--core/Plugin/Report.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/Plugin/Report.php b/core/Plugin/Report.php
index b9c407e10e..dfbe6e50cf 100644
--- a/core/Plugin/Report.php
+++ b/core/Plugin/Report.php
@@ -189,6 +189,13 @@ class Report
protected $recursiveLabelSeparator = ' - ';
/**
+ * Default sort column. Either a column name or a column id.
+ *
+ * @var string|int
+ */
+ protected $defaultSortColumn = '';
+
+ /**
* @var array
* @ignore
*/
@@ -579,6 +586,14 @@ class Report
}
/**
+ * @ignore
+ */
+ public function getDefaultSortColumn()
+ {
+ return $this->defaultSortColumn;
+ }
+
+ /**
* Get the list of related reports if there are any. They will be displayed for instance below a report as a
* recommended related report.
*