noalyss-commit
[Top][All Lists]
Advanced

[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
 {



reply via email to

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