当前位置: 首页>>代码示例>>PHP>>正文


PHP DynamicField::deleteField方法代码示例

本文整理汇总了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();
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:10,代码来源:Bug58138Test.php

示例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']);
         }
     }
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:16,代码来源:ModuleInstaller.php

示例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}");
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:Delete.php

示例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']);
         }
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:13,代码来源:ModuleInstaller.php


注:本文中的DynamicField::deleteField方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。