-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.php
51 lines (45 loc) · 1.52 KB
/
tables.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* PostNuke Application Framework
*
* @copyright (c) 2002, PostNuke Development Team
* @link http://www.postnuke.com
* @version $Id: pntables.php 22139 2007-06-01 10:57:16Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package PostNuke_Value_Addons
* @subpackage Weebbox
*/
/**
* Define module tables
* @author Albert Perez Monfort ([email protected])
* @return module tables information
*/
function IWmenu_tables() {
// Initialise table array
$tables = array();
// IWmain table definition
$tables['IWmenu'] = DBUtil::getLimitedTablename('IWmenu');
//Noms dels camps
$tables['IWmenu_column'] = array('mid' => 'iw_mid',
'text' => 'iw_text',
'url' => 'iw_url',
'id_parent' => 'iw_id_parent',
'groups' => 'iw_groups',
'active' => 'iw_active',
'target' => 'iw_target',
'descriu' => 'iw_descriu',
'iorder' => 'iw_iorder',
'icon' => 'iw_icon',);
$tables['IWmenu_column_def'] = array('mid' => "I NOTNULL AUTO PRIMARY",
'text' => "C(255) NOTNULL DEFAULT ''",
'url' => "X NOTNULL",
'id_parent' => "I NOTNULL DEFAULT '0'",
'groups' => "X NOTNULL",
'active' => "I(1) NOTNULL DEFAULT '0'",
'target' => "I(1) NOTNULL DEFAULT '0'",
'descriu' => "X NOTNULL",
'iorder' => "I NOTNULL DEFAULT '0'",
'icon' => "C(40) NOTNULL DEFAULT ''");
// Return the table information
return $tables;
}