noalyss  Version-6.9.1.8
 All Data Structures Namespaces Files Functions Variables Pages
class_tag_sql.php
Go to the documentation of this file.
1 <?php
2 require_once NOALYSS_INCLUDE.'/lib/class_database.php';
3 require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
4 require_once NOALYSS_INCLUDE.'/database/class_noalyss_sql.php';
5 /*
6  * This file is part of NOALYSS.
7  *
8  * NOALYSS is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NOALYSS is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NOALYSS; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  */
22 // Copyright Author Dany De Bontridder danydb@aevalys.eu
23 /**
24  * @brief Manage the table public.tag
25  */
26 class Tag_SQL extends Noalyss_SQL
27 {
28  /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
29 
30  function __construct(& $p_cn, $p_id = -1)
31  {
32  $this->table = "public.tags";
33  $this->primary_key = "t_id";
34 
35  $this->name = array(
36  "t_id" => "t_id"
37  , "t_tag" => "t_tag"
38  , "t_description" => "t_description"
39  );
40  $this->type = array(
41  "t_id" => "numeric"
42  , "t_tag" => "text"
43  , "t_description" => "text"
44  );
45  $this->default = array(
46  "t_id" => "auto",
47  );
48 
49  parent::__construct($p_cn,$p_id);
50 
51  }
52 
53 }
54 ?>
Match a table into an object, you need to add the code for each table.
$from_poste name
$input_from type
Definition: balance.inc.php:70
__construct(&$p_cn, $p_id=-1)
$select_type table
Manage the table public.tag.