本文整理汇总了PHP中DynamicField::deleteField方法的典型用法代码示例。如果您正苦于以下问题:PHP DynamicField::deleteField方法的具体用法?PHP DynamicField::deleteField怎么用?PHP DynamicField::deleteField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DynamicField
的用法示例。
在下文中一共展示了DynamicField::deleteField方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
/**
* Removing field, account, contact
*/
public function tearDown()
{
SugarTestContactUtilities::removeAllCreatedContacts();
SugarTestAccountUtilities::removeAllCreatedAccounts();
$this->dynamicField->deleteField($this->field);
SugarTestHelper::tearDown();
}
示例2: DynamicField
function uninstall_custom_fields($fields)
{
global $beanList, $beanFiles;
require_once 'modules/DynamicFields/DynamicField.php';
$dyField = new DynamicField();
foreach ($fields as $field) {
$class = $beanList[$field['module']];
if (file_exists($beanFiles[$class])) {
require_once $beanFiles[$class];
$mod = new $class();
$dyField->bean = $mod;
$dyField->module = $field['module'];
$dyField->deleteField($field['name']);
}
}
}
示例3: FieldsMetaData
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
require_once 'modules/EditCustomFields/EditCustomFields.php';
require_once 'modules/DynamicFields/DynamicField.php';
require_once 'modules/DynamicFields/DynamicField.php';
if (!empty($_REQUEST['record'])) {
$fields_meta_data = new FieldsMetaData($_REQUEST['record']);
$fields_meta_data->retrieve($_REQUEST['record']);
$module = $fields_meta_data->custom_module;
$custom_fields = new DynamicField($module);
if (!empty($module)) {
$class_name = $beanList[$module];
$class_file = $class_name;
if ($class_file == 'aCase') {
$class_file = 'Case';
}
require_once "modules/{$module}/{$class_file}.php";
$mod = new $class_name();
$custom_fields->setup($mod);
} else {
echo "\nNo Module Included Could Not Delete";
}
$custom_fields->deleteField($fields_meta_data->name);
$fields_meta_data->mark_deleted($_REQUEST['record']);
}
$return_module = empty($_REQUEST['return_module']) ? 'EditCustomFields' : $_REQUEST['return_module'];
$return_action = empty($_REQUEST['return_action']) ? 'index' : $_REQUEST['return_action'];
$return_module_select = empty($_REQUEST['module_name']) ? 0 : $_REQUEST['module_name'];
header("Location: index.php?action={$return_action}&module={$return_module}&module_name={$return_module_select}");
示例4: DynamicField
function uninstall_custom_fields($fields)
{
require_once 'modules/DynamicFields/DynamicField.php';
$dyField = new DynamicField();
foreach ($fields as $field) {
$mod = BeanFactory::getBean($field['module']);
if (!empty($mod)) {
$dyField->bean = $mod;
$dyField->module = $field['module'];
$dyField->deleteField($field['name']);
}
}
}