noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 174/323: Improve Documentation


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 174/323: Improve Documentation
Date: Wed, 14 Mar 2018 17:38:45 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit a685ec54a692c8048f3582dde49c38b1071151d6
Author: Dany De Bontridder <address@hidden>
Date:   Sat Feb 10 10:12:27 2018 +0100

    Improve Documentation
---
 include/lib/manage_table_sql.class.php | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/include/lib/manage_table_sql.class.php 
b/include/lib/manage_table_sql.class.php
index 9ff6e57..c5c965a 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -195,7 +195,13 @@ class Manage_Table_SQL
 
     /**
      * This function can be overrided to check the data before 
-     * inserting , updating or removing, above an example of an overidden check
+     * inserting , updating or removing, above an example of an overidden 
check.
+     * 
+     * Usually , you get the row of the table (get_table) , you check the 
conditions
+     * if an condition is not met then you set the error with $this->set_error 
+     * 
+     * if there are error returns false otherwise true
+     * 
      * @see set_error get_error
      * @return boolean
      * @code 
@@ -752,7 +758,14 @@ function check()
             }
             else
             {
-                echo td($p_row[$v]);
+                if ( $this->get_col_type($v)=="select")
+                {
+                    $idx=$p_row[$v];
+                   echo td($this->a_select[$v][$idx]["label"]);
+                    
+                }else {
+                    echo td($p_row[$v]);
+                }
             }
         }
         if ($this->icon_mod=="right")



reply via email to

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