noalyss
Version-9
include
database
default_menu_sql.class.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
*
5
* NOALYSS is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* NOALYSS is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with NOALYSS; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
// Copyright Author Dany De Bontridder danydb@aevalys.eu
20
21
/**
22
* Description of class_default_menu_sql
23
*
24
* @author dany
25
*/
26
27
class
Default_Menu_SQL
extends
Table_Data_SQL
28
{
29
var
$md_id
;
30
var
$md_code
;
31
var
$me_code
;
32
33
function
__construct
(&$p_cn,
$p_id
= -1)
34
{
35
$this->
table
=
"public.menu_default"
;
36
$this->primary_key =
"md_id"
;
37
38
$this->
name
= array(
39
"md_id"
=>
"md_id"
,
40
"md_code"
=>
"md_code"
,
41
"me_code"
=>
"me_code"
42
);
43
$this->
type
= array(
44
"md_id"
=>
"md_id"
45
,
"md_code"
=>
"text"
46
,
"me_code"
=>
"text"
47
);
48
$this->
default
= array(
49
"md_id"
50
);
51
global
$cn
;
52
53
parent::__construct(
$cn
,
$p_id
);
54
}
55
56
}
$p_id
$p_id
Definition:
ajax_accounting.php:33
name
$from_poste name
Definition:
balance.inc.php:163
type
$input_from type
Definition:
balance.inc.php:65
Data_SQL\$cn
$cn
Definition:
data_sql.class.php:98
Default_Menu_SQL
Description of class_default_menu_sql.
Definition:
default_menu_sql.class.php:28
Default_Menu_SQL\$md_code
$md_code
Definition:
default_menu_sql.class.php:30
Default_Menu_SQL\$md_id
$md_id
Definition:
default_menu_sql.class.php:29
Default_Menu_SQL\__construct
__construct(&$p_cn, $p_id=-1)
Definition:
default_menu_sql.class.php:33
Default_Menu_SQL\$me_code
$me_code
Definition:
default_menu_sql.class.php:31
Table_Data_SQL
Interface : this wrapper is used to created easily a wrapper to a table (ORM) You must create a class...
Definition:
table_data_sql.class.php:90
table
$all table
Definition:
company.inc.php:142