Xataface 2.0
Xataface Application Framework
Dataface/ConfigTool/createConfigTable.function.php
Go to the documentation of this file.
00001 <?php
00010 function Dataface_ConfigTool_createConfigTable(){
00011         $self =& Dataface_ConfigTool::getInstance();
00012         if ( !Dataface_Table::tableExists($self->configTableName, false) ){
00013                 $sql = "CREATE TABLE `".$self->configTableName."` (
00014                                         config_id int(11) NOT NULL auto_increment primary key,
00015                                         `file` varchar(255) NOT NULL,
00016                                         `section` varchar(128),
00017                                         `key` varchar(128) NOT NULL,
00018                                         `value` text NOT NULL,
00019                                         `lang` varchar(2),
00020                                         `username` varchar(32),
00021                                         `priority` int(5) default 5
00022                                         )";
00023                 $res = mysql_query($sql, df_db());
00024                 if ( !$res ){
00025                         throw new Exception(mysql_error(df_db()), E_USER_ERROR);
00026 
00027                 }
00028         }
00029 
00030 }
 All Data Structures Namespaces Files Functions Variables Enumerations