noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
class_tag_sql.php
Go to the documentation of this file.
00001 <?php
00002 require_once('class_database.php');
00003 require_once('ac_common.php');
00004 require_once 'class_phpcompta_sql.php';
00005 /*
00006  *   This file is part of NOALYSS.
00007  *
00008  *   NOALYSS is free software; you can redistribute it and/or modify
00009  *   it under the terms of the GNU General Public License as published by
00010  *   the Free Software Foundation; either version 2 of the License, or
00011  *   (at your option) any later version.
00012  *
00013  *   NOALYSS is distributed in the hope that it will be useful,
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  *   GNU General Public License for more details.
00017  *
00018  *   You should have received a copy of the GNU General Public License
00019  *   along with NOALYSS; if not, write to the Free Software
00020  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00023 /**
00024  * @brief Manage the table public.tag
00025  */
00026 class Tag_SQL extends Phpcompta_SQL
00027 {
00028         /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
00029 
00030         function __construct(& $p_cn, $p_id = -1)
00031         {
00032                 $this->table = "public.tags";
00033                 $this->primary_key = "t_id";
00034 
00035                 $this->name = array(
00036                         "t_id" => "t_id"
00037                         , "t_tag" => "t_tag"
00038                         , "t_description" => "t_description"
00039                     );
00040                 $this->type = array(
00041                         "t_id" => "numeric"
00042                         , "t_tag" => "text"
00043                         , "t_description" => "text"
00044                 );
00045                 $this->default = array(
00046                         "t_id" => "auto",
00047                 );
00048                 global $cn;
00049 
00050                 parent::__construct($cn,$p_id);
00051 
00052         }
00053 
00054 }
00055 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations