本文整理汇总了PHP中CustomFields::create_tables方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomFields::create_tables方法的具体用法?PHP CustomFields::create_tables怎么用?PHP CustomFields::create_tables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomFields
的用法示例。
在下文中一共展示了CustomFields::create_tables方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CustomFields
* requirements.
*
* The Original Code is: SugarCRM Open Source
* The Initial Developer of the Original Code is SugarCRM, Inc.
* Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.;
* All Rights Reserved.
* Contributor(s): ______________________________________.
********************************************************************************/
/*********************************************************************************
* Description: Executes a step in the installation process.
********************************************************************************/
require_once 'data/Tracker.php';
require_once 'include/utils.php';
require_once 'include/modules.php';
require_once 'modules/CustomFields/CustomFields.php';
// load up the config_override.php file. This is used to provide default user settings
if (is_file("config_override.php")) {
require_once "config_override.php";
}
$db = PearDatabase::getInstance();
$focus = new CustomFields();
if ($db->tableExists($focus->table_name)) {
$focus->drop_tables();
$focus->create_tables();
$GLOBALS['log']->info("<li>Table " . $focus->table_name . " already exists.");
return 0;
} else {
$focus->create_tables();
$GLOBALS['log']->info("<li>Created " . $focus->table_name . " table.");
return 1;
}