Xataface
2.0alpha2
Xataface Application Framework
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
Dataface
ConfigTool
createConfigTable.function.php
Go to the documentation of this file.
1
<?php
10
function
Dataface_ConfigTool_createConfigTable
(){
11
$self =&
Dataface_ConfigTool::getInstance
();
12
if
( !
Dataface_Table::tableExists
($self->configTableName,
false
) ){
13
$sql =
"CREATE TABLE `"
.$self->configTableName.
"` (
14
config_id int(11) NOT NULL auto_increment primary key,
15
`file` varchar(255) NOT NULL,
16
`section` varchar(128),
17
`key` varchar(128) NOT NULL,
18
`value` text NOT NULL,
19
`lang` varchar(2),
20
`username` varchar(32),
21
`priority` int(5) default 5
22
)"
;
23
$res = mysql_query($sql, df_db());
24
if
( !$res ){
25
throw
new
Exception(mysql_error(df_db()), E_USER_ERROR);
26
27
}
28
}
29
30
}
Generated on Fri Mar 22 2013 09:40:33 for Xataface by
1.8.1.2