noalyss Version-9
fiche_def_ref_sql.class.php
Go to the documentation of this file.
1<?php
2
3/*
4 * Copyright (C) 2018 Dany De Bontridder <dany@alchimerys.be>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program 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 this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21/**
22 * @file
23 * @brief Manage the table public.fiche_def_ref , which concerns the template of
24 * category of card
25 */
26
27/**
28 * @class Fiche_def_ref_SQL
29 * @brief ORM Manage the table public.fiche_def_ref , which concerns the template of
30 * category of card
31 */
33{
34
35 function __construct(DatabaseCore $p_cn, $p_id=-1)
36 {
37 $this->table="public.fiche_def_ref";
38 $this->primary_key="frd_id";
39 /*
40 * List of columns
41 */
42 $this->name=array(
43 "frd_id"=>"frd_id"
44 , "frd_text"=>"frd_text"
45 , "frd_class_base"=>"frd_class_base"
46 );
47 /*
48 * Type of columns
49 */
50 $this->type=array(
51 "frd_id"=>"numeric"
52 , "frd_text"=>"text"
53 , "frd_class_base"=>"text"
54 );
55
56
57 $this->default=array(
58 "frd_id"=>"auto"
59 );
60
61 $this->date_format="DD.MM.YYYY";
62 parent::__construct($p_cn, $p_id);
63 }
64
65}
$from_poste name
$input_from type
Definition: balance.inc.php:65
This class allow you to connect to the postgresql database, execute sql, retrieve data.
ORM Manage the table public.fiche_def_ref , which concerns the template of category of card.
__construct(DatabaseCore $p_cn, $p_id=-1)
Interface : this wrapper is used to created easily a wrapper to a table (ORM) You must create a class...
$all table