本文整理匯總了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;
}