noalyss Version-9
operation_exercice_sql.class.php
Go to the documentation of this file.
1<?php
2
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 * copyright Dany WM De Bontridder($(YEAR))
20 *
21 * $(DATE)
22 */
23
24/**
25 * @file
26 * @brief abstract of the table public.operation_exercice
27 */
28
29/**
30 * @class
31 * @brief abstract of the table public.operation_exercice
32 */
34{
35
36 function __construct(DatabaseCore $p_cn, $p_id = -1)
37 {
38 $this->table = "public.operation_exercice";
39 $this->primary_key = "oe_id";
40 /*
41 * List of columns
42 */
43 $this->name = array(
44 "oe_id" => "oe_id",
45 "oe_date" => "oe_date",
46 "oe_text" => "oe_text",
47 "oe_type" => "oe_type",
48 "tech_user" => "tech_user",
49 "tech_date" => "tech_date",
50 "oe_dossier_id" => "oe_dossier_id",
51 "oe_exercice" => "oe_exercice",
52 "oe_transfer_date"=>"oe_transfer_date"
53
54 );
55 /*
56 * Type of columns
57 */
58 $this->type = array(
59 "oe_id" => "number",
60 "oe_date" => "date",
61 "oe_text" => "text",
62 "oe_type" => "text",
63 "tech_user" => "text",
64 "tech_date" => "date",
65 "oe_dossier_id" => "number",
66 "oe_exercice" => "number",
67 "oe_transfer_date"=>"date"
68 );
69
70
71 $this->default = array(
72 "oe_id" => "oe_id",
73 "tech_user" => "tech_user",
74 "tech_date" => "tech_date",
75 );
76
77 $this->date_format = "DD.MM.YYYY";
78 parent::__construct($p_cn, $p_id);
79 }
80
81
82}
$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.
__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