[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 175/323: Manage_Table_SQL : Improve Documenta
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 175/323: Manage_Table_SQL : Improve Documentation + add function count_error |
Date: |
Wed, 14 Mar 2018 17:38:45 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 97c6c1e007dba4923b2cc56993de79a0cffcfc86
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 10 12:55:18 2018 +0100
Manage_Table_SQL : Improve Documentation + add function count_error
---
include/lib/manage_table_sql.class.php | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/lib/manage_table_sql.class.php
b/include/lib/manage_table_sql.class.php
index c5c965a..80e04a9 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -179,7 +179,13 @@ class Manage_Table_SQL
{
$this->aerror[$p_col]=$p_message;
}
-
+ /**
+ * returns the nb of errors found
+ */
+ function count_error()
+ {
+ return count($this->aerror);
+ }
/**
* @brief retrieve the error message
* @param $p_col column name
@@ -200,9 +206,9 @@ class Manage_Table_SQL
* 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
+ * if there are error (returns false otherwise true
*
- * @see set_error get_error
+ * @see set_error get_error count_error
* @return boolean
* @code
function check()
- [Noalyss-commit] [noalyss] 226/323: Dashboard : remove dead code, (continued)
- [Noalyss-commit] [noalyss] 226/323: Dashboard : remove dead code, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 217/323: Periode : fix bug, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 208/323: Missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 233/323: Backward comptability for SQL function, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 264/323: Category Aged Balance add a start date, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 269/323: typo, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 270/323: check if open_basedir is empty, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 170/323: indent, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 207/323: Missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 236/323: Merge tag 'rel6920', Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 175/323: Manage_Table_SQL : Improve Documentation + add function count_error,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 214/323: Plugin : fix indent, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 184/323: missing file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 260/323: esthetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 311/323: Follow-up fix small bug with ag_ref, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 307/323: Task #0001563: check date limit VEN & ACH, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 212/323: Bug : Periode cannot add a new exercice, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 228/323: Document_Modele CFGDOC warning if there is no template, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 161/323: Esthetic : improve, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 222/323: TextArea : fix move when focus, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 203/323: Esthetic : menu administration, Dany De Bontridder, 2018/03/14