From 8498612e378068c7e558010ff3578169008a809a Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 19 Sep 2013 14:22:41 +0000 Subject: [PATCH] Files for tags --- include/cfgtags.inc.php | 27 ++++++++++++++++ include/class_phpcompta_sql.php | 2 +- include/class_tag.php | 35 +++++++++++++++++++++ include/class_tag_sql.php | 56 +++++++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 include/cfgtags.inc.php create mode 100644 include/class_tag.php create mode 100644 include/class_tag_sql.php diff --git a/include/cfgtags.inc.php b/include/cfgtags.inc.php new file mode 100644 index 000000000..01f7c166a --- /dev/null +++ b/include/cfgtags.inc.php @@ -0,0 +1,27 @@ + diff --git a/include/class_phpcompta_sql.php b/include/class_phpcompta_sql.php index 4d3210449..da335b369 100644 --- a/include/class_phpcompta_sql.php +++ b/include/class_phpcompta_sql.php @@ -273,7 +273,7 @@ class phpcompta_sql *@see seek *@return object */ - public function next($ret,$i) { + public function next($ret,$i) { $array=$this->cn->fetch_array($ret,$i); return $this->from_array($array); } diff --git a/include/class_tag.php b/include/class_tag.php new file mode 100644 index 000000000..c759ff942 --- /dev/null +++ b/include/class_tag.php @@ -0,0 +1,35 @@ +data=new Tag_SQL($p_cn); + } + function show_list() + { + + } +} + +?> diff --git a/include/class_tag_sql.php b/include/class_tag_sql.php new file mode 100644 index 000000000..a0bce22a2 --- /dev/null +++ b/include/class_tag_sql.php @@ -0,0 +1,56 @@ +column_name,"email"=>"column_name_email","val3"=>0); */ + + function __construct(& $p_cn, $p_id = -1) + { + $this->table = "public.tag"; + $this->primary_key = "t_id"; + + $this->name = array( + "t_id" => "t_id" + , "t_tag" => "t_tag" + , "t_description" => "t_description" + ); + $this->type = array( + "t_id" => "numeric" + , "t_tag" => "text" + , "t_description" => "text" + ); + $this->default = array( + "t_id" => "auto", + ); + global $cn; + + parent::__construct($cn,$p_id); + + } + +} +?>