Plugins  LAST
 All Data Structures Files Functions Variables Pages
class_impacc_import_csv_sql.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of PhpCompta.
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 (2016) Author Dany De Bontridder <dany@alchimerys.be>
21 
22 if (!defined('ALLOWED'))
23  die('Appel direct ne sont pas permis');
24 
25 require_once NOALYSS_INCLUDE.'/database/class_noalyss_sql.php';
26 require_once NOALYSS_INCLUDE.'/lib/class_database.php';
27 
28 /**
29  * class_import_csv_sql.php
30  *
31  * @file
32  * @brief abstract of the table impacc.import_csv */
33 class Impacc_Import_csv_SQL extends Noalyss_SQL
34 {
35 
36  function __construct(Database $p_cn, $p_id=-1)
37  {
38  $this->table="impacc.import_csv";
39  $this->primary_key="id";
40  /*
41  * List of columns
42  */
43  $this->name=array(
44  "id"=>"id"
45  , "s_decimal"=>"s_decimal"
46  , "s_thousand"=>"s_thousand"
47  , "s_encoding"=>"s_encoding"
48  , "jrn_def_id"=>"jrn_def_id"
49  , "s_surround"=>"s_surround"
50  , "s_delimiter"=>"s_delimiter"
51  ,"import_id"=>"import_id"
52  ,"s_date_format"=>"s_date_format"
53  );
54  /*
55  * Type of columns
56  */
57  $this->type=array(
58  "id"=>"numeric"
59  , "s_decimal"=>"text"
60  , "s_thousand"=>"text"
61  , "s_encoding"=>"text"
62  , "jrn_def_id"=>"numeric"
63  , "s_surround"=>"text"
64  , "s_delimiter"=>"text"
65  ,"import_id"=>"numeric"
66  ,"s_date_format"=>"numeric"
67  );
68 
69 
70  $this->default=array(
71  "id"=>"auto"
72  );
73 
74  $this->date_format="DD.MM.YYYY";
75  parent::__construct($p_cn, $p_id);
76  }
77 }
__construct(Database $p_cn, $p_id=-1)
$categorie_appel table
$categorie_appel name