noalyss Version-9
stock_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 */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief abstract of the table public.stock_repository
26 *
27 */
28
29 /**
30 * @class Stock_Sql
31 *
32 * @brief ORM abstract of the table public.stock_repository
33 */
35 function __construct($cn,$p_id=-1)
36 {
37 $this->table = "public.stock_repository";
38 $this->primary_key = "r_id";
39
40 $this->name=array(
41 "id"=>"r_id",
42 "name"=>"r_name",
43 "adress"=>"r_adress",
44 "city"=>"r_city",
45 "country"=>"r_country",
46 "phone"=>"r_phone"
47 );
48
49 $this->type = array(
50 "r_id"=>"numeric",
51 "r_name"=>"text",
52 "r_adress"=>"text",
53 "r_city"=>"text",
54 "r_country"=>"text",
55 "r_phone"=>"text"
56
57 );
58
59 $this->default = array(
60 "r_id" => "auto",
61 );
62 global $cn;
63
64 parent::__construct($cn,$p_id);
65 }
66}
67?>
$from_poste name
$input_from type
Definition: balance.inc.php:65
ORM abstract of the table public.stock_repository.
__construct($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