-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.php
48 lines (42 loc) · 1.97 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
<?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 Pérez Monfort ([email protected])
* @return module tables information
*/
function IWwebbox_tables() {
// Initialise table array
$table = array();
// IWwebbox table definition
$table['IWwebbox'] = DBUtil::getLimitedTablename('IWwebbox');
$table['IWwebbox_column'] = array('pid' => 'iw_pid',
'url' => 'iw_url',
'ref' => 'iw_ref',
'scrolls' => 'iw_scrolls',
'description' => 'iw_description',
'width' => 'iw_width',
'height' => 'iw_height',
'widthunit' => 'iw_widthunit');
$table['IWwebbox_column_def'] = array('pid' => "I NOTNULL AUTO PRIMARY",
'url' => "C(255) NOTNULL DEFAULT ''",
'ref' => "C(10) NOTNULL DEFAULT ''",
'scrolls' => "I(1) NOTNULL DEFAULT '1'",
'description' => "C(255) NOTNULL DEFAULT ''",
'width' => "I NOTNULL DEFAULT '100'",
'height' => "I NOTNULL DEFAULT '600'",
'widthunit' => "C(10) NOTNULL DEFAULT '%'");
ObjectUtil::addStandardFieldsToTableDefinition($table['IWwebbox_column'], 'pn_');
ObjectUtil::addStandardFieldsToTableDataDefinition($table['IWwebbox_column_def'], 'iw_');
// Return the table information
return $table;
}