From d5aefa11e587e4fe9e3ee8744744242f706a8800 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Sep 2010 06:49:52 +0000 Subject: [PATCH] Allow to disable the sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19821 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_sortableListing.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index 0f3e650db..b134ab1dc 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -33,6 +33,7 @@ class sortableListing { private $cssclass= ""; private $id; + private $sortingEnabled= true; private $data= array(); private $keys= array(); private $modes= array(); @@ -506,9 +507,15 @@ class sortableListing { } + public function sortingEnabled($bool = TRUE) + { + $this->sortingEnabled= $bool; + } + + public function sortData() { - if(!count($this->data)) return; + if(!$this->sortingEnabled || !count($this->data)) return; // Extract data $tmp= array(); -- 2.30.2