noalyss Version-9
currency_history_sql.class.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta 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 * PhpCompta 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 PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2018) Author Dany De Bontridder <dany@alchimerys.be>
21
22
23/**
24 * class_currency_history_sql.php
25 *
26 * @file
27 * @brief abstract of the table public.currency_history */
28
29/**
30 * @class Currency_history_SQL
31 * @brief abstract of the table public.currency_history
32 */
34{
35
36 function __construct(Database $p_cn, $p_id=-1)
37 {
38 $this->table="public.currency_history";
39 $this->primary_key="id";
40 /*
41 * List of columns
42 */
43 $this->name=array(
44 "id"=>"id"
45 , "ch_value"=>"ch_value"
46 , "ch_from"=>"ch_from"
47 , "currency_id"=>"currency_id"
48 );
49 /*
50 * Type of columns
51 */
52 $this->type=array(
53 "id"=>"numeric"
54 , "ch_value"=>"numeric"
55 , "ch_from"=>"date"
56 , "currency_id"=>"numeric"
57 );
58
59
60 $this->default=array(
61 "id"=>"auto"
62 );
63
64 $this->date_format="DD.MM.YYYY";
65 parent::__construct($p_cn, $p_id);
66 }
67
68}
$from_poste name
$input_from type
Definition: balance.inc.php:65
abstract of the table public.currency_history
__construct(Database $p_cn, $p_id=-1)
contains the class for connecting to Noalyss
Interface : this wrapper is used to created easily a wrapper to a table (ORM) You must create a class...
$all table