[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/323: Data_SQL : add doxygen doc
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 08/323: Data_SQL : add doxygen doc |
Date: |
Wed, 14 Mar 2018 17:38:08 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit dcb7d8ecb01eb4e1e9146297043aa39868cbe636
Author: Dany De Bontridder <address@hidden>
Date: Thu Dec 21 13:34:51 2017 +0100
Data_SQL : add doxygen doc
---
include/lib/data_sql.class.php | 52 ++++++------------------------------------
1 file changed, 7 insertions(+), 45 deletions(-)
diff --git a/include/lib/data_sql.class.php b/include/lib/data_sql.class.php
index 99f1af6..f769839 100644
--- a/include/lib/data_sql.class.php
+++ b/include/lib/data_sql.class.php
@@ -22,7 +22,13 @@
/**
* @file
- * @brief this wrapper is used to created easily a wrapper to a table
+ * @brief this a abstract class , all the SQL class, like noalyss_sql (table),
Acc_Plan_SQL (based on a SQL not a table)
+ */
+
+/**
+ * @brief this a abstract class , all the SQL class, like noalyss_sql (table),
+ * Acc_Plan_SQL (based on a SQL not a table).
+ *
* You must create a class extending this one, in the constructor
* these variables have to be defined
*
@@ -37,50 +43,6 @@
* @note the view or the table must include an unique key, otherwise the load
* doesn't work.
*
- * @class Noalyss_SQL
- * Match a table or a view into an object, you need to add the code for each
table
- * @note : the primary key must be an integer
- *
- * @code
- class table_name_sql extends Noalyss_SQL
- {
-
- function __construct($p_id=-1)
- {
- $this->table = "schema.table";
- $this->primary_key = "o_id";
-
- $this->name=array(
- "id"=>"o_id",
- "program"=>"o_prog",
- "date"=>"o_date",
- "qcode"=>"o_qcode",
- "fiche"=>"f_id",
-
-
- );
-
- $this->type = array(
- "o_id"=>"numeric",
- "o_prog"=>"numeric",
- "o_date"=>"date",
- "o_qcode"=>"text",
- "f_id"=>"numeric",
-
- );
-
- $this->default = array(
- "o_id" => "auto",
- );
- $this->date_format = "DD.MM.YYYY";
- global $cn;
-
- parent::__construct($cn,$p_id);
- }
-
- }
- * @endcode
- *
*/
abstract class Data_SQL
{
- [Noalyss-commit] [noalyss] branch master updated (689dfc2 -> 2711cee), Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 02/323: script.js : code cleaning, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 01/323: Fix problem with invalid unicode sequence, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 06/323: Fix : is now protected instead of private, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 09/323: Data_SQL : add doxygen doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 08/323: Data_SQL : add doxygen doc,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/323: Acc_Plan_MTable : add doxygen doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 11/323: redirect incorrect : fix small bug, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 13/323: Add Documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 18/323: cosmetic , add a button close for warning, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 17/323: query is prepared twice and cannot be called only once, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 05/323: Fix : script failed due to the lack of search_path, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 10/323: Acc_Plan_SQL : add doxygen doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 14/323: Update Doxyfile : version nb, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 15/323: Fix problem with font OpenSans, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 19/323: Task #1516 : Module période : add icon for closing / opening, Dany De Bontridder, 2018/03/14