noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 132/219: Manage_Table_SQL : add a function to


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 132/219: Manage_Table_SQL : add a function to set the order
Date: Mon, 18 Dec 2017 13:22:50 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4fdbf0c3a6414790468b3bf954cce7c37d585d13
Author: Dany De Bontridder <address@hidden>
Date:   Thu Nov 2 23:48:13 2017 +0100

    Manage_Table_SQL : add a function to set the order
---
 include/lib/manage_table_sql.class.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/lib/manage_table_sql.class.php 
b/include/lib/manage_table_sql.class.php
index 15a787f..4234397 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -160,6 +160,12 @@ class Manage_Table_SQL
     {
         return $this->a_order;
     }
+    function set_order($p_order)
+    {
+        if (! is_array($p_order) )            
+                throw new Exception("set_order, parameter is not an array");
+        $this->a_order=$p_order;
+    }
     /**
      * @brief set the error message for a wrong input
      * @param $p_col the column name 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]