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