當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。