Plugins  LAST
 All Data Structures Files Functions Variables Pages
class_amortissement_sql.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  * Copyright 2010 De Bontridder Dany <dany@alchimerys.be>
21 
22  */
23 /**
24  * @file
25  * @brief Manage the table amortissement.amortissement
26  *
27  *
28  Example
29  @code
30 
31  @endcode
32  */
33 require_once NOALYSS_INCLUDE.'/lib/class_database.php';
34 require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
35 require_once NOALYSS_INCLUDE.'/database/class_noalyss_sql.php';
36 
37 /**
38  * @brief Manage the table amortissement.amortissement
39  */
40 class Amortissement_Sql extends Noalyss_SQL
41 {
42  /* example private $variable=array("easy_name"=>column_name,"email"=>"column_name_email","val3"=>0); */
43 
44  function __construct(&$p_cn,$p_id=-1)
45  {
46  $this->table="amortissement.amortissement";
47  $this->primary_key="a_id";
48  $this->name=array("a_id"=>"a_id",
49  "f_id"=>"f_id"
50  , "account_deb"=>"account_deb"
51  , "account_cred"=>"account_cred"
52  , "a_start"=>"a_start"
53  , "a_amount"=>"a_amount"
54  , "a_nb_year"=>"a_nb_year"
55  , "a_visible"=>"a_visible"
56  , "a_date"=>"a_date"
57  , 'charge'=>'card_deb'
58  , 'amorti'=>'card_cred'
59  );
60  $this->type=array("a_id"=>"numeric",
61  "f_id"=>"numeric"
62  , "account_deb"=>"numeric"
63  , "account_cred"=>"numeric"
64  , "a_start"=>"numeric"
65  , "a_amount"=>"numeric"
66  , "a_nb_year"=>"numeric"
67  , "a_visible"=>"text"
68  , "a_date"=>"date"
69  , 'card_deb'=>'numeric'
70  , 'card_cred'=>'numeric'
71  );
72 
73  $this->date_format='DD.MM.YYYY';
74 
75  $this->default=array(
76  "a_id"=>"auto"
77  );
78  global $cn;
79  parent::__construct($p_cn, $p_id);
80  }
81 
82 }
83 
84 // Amortissement_Sql::test_me();
85 ?>
__construct(&$p_cn, $p_id=-1)
$categorie_appel table
$categorie_appel name
Manage the table amortissement.amortissement.
global $cn