當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ModuleBuilderController::action_DeleteField方法代碼示例

本文整理匯總了PHP中ModuleBuilderController::action_DeleteField方法的典型用法代碼示例。如果您正苦於以下問題:PHP ModuleBuilderController::action_DeleteField方法的具體用法?PHP ModuleBuilderController::action_DeleteField怎麽用?PHP ModuleBuilderController::action_DeleteField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ModuleBuilderController的用法示例。


在下文中一共展示了ModuleBuilderController::action_DeleteField方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     $mbc = new ModuleBuilderController();
     $this->currencyFieldDef1['name'] = 'c1_c';
     $_REQUEST = $this->currencyFieldDef1;
     $mbc->action_DeleteField();
     $this->currencyFieldDef2['name'] = 'c2_c';
     $_REQUEST = $this->currencyFieldDef2;
     $mbc->action_DeleteField();
     SugarTestUserUtilities::removeAllCreatedAnonymousUsers();
     unset($GLOBALS['current_user']);
     unset($GLOBALS['beanList']);
     unset($GLOBALS['beanFiles']);
     unset($GLOBALS['app_list_strings']);
     unset($_REQUEST);
 }
開發者ID:jgera,項目名稱:sugarcrm_dev,代碼行數:16,代碼來源:Bug52063Test.php

示例2: testRemoveCustomFieldFromSubpanelForCustomRelation

 /**
  * Test tries to assert that field is not exist after removal it from subpanel
  * 
  * @group 46196
  */
 public function testRemoveCustomFieldFromSubpanelForCustomRelation()
 {
     $controller = new ModuleBuilderController();
     $module_name = 'Accounts';
     $_REQUEST['view_module'] = $module_name;
     $test_field_name = 'testfield_222222';
     $_REQUEST['name'] = $test_field_name;
     $_REQUEST['labelValue'] = 'testfield 222222';
     $_REQUEST['label'] = 'LBL_TESTFIELD_222222';
     $_REQUEST['type'] = 'varchar';
     $controller->action_SaveField();
     $_REQUEST['view_module'] = $module_name;
     $_REQUEST['relationship_type'] = 'many-to-many';
     $_REQUEST['lhs_module'] = $module_name;
     $_REQUEST['lhs_label'] = $module_name;
     $_REQUEST['rhs_module'] = $module_name;
     $_REQUEST['rhs_label'] = $module_name;
     $_REQUEST['lhs_subpanel'] = 'default';
     $_REQUEST['rhs_subpanel'] = 'default';
     $controller->action_SaveRelationship();
     $parser = ParserFactory::getParser('listview', $module_name, null, 'accounts_accounts');
     $field = $parser->_fielddefs[$test_field_name . '_c'];
     $parser->_viewdefs[$test_field_name . '_c'] = $field;
     $parser->handleSave(false);
     $_REQUEST['type'] = 'varchar';
     $_REQUEST['name'] = $test_field_name . '_c';
     $controller->action_DeleteField();
     $parser = ParserFactory::getParser('listview', $module_name, null, 'accounts_accounts');
     $_REQUEST['relationship_name'] = 'accounts_accounts';
     $controller->action_DeleteRelationship();
     $this->assertArrayNotHasKey($test_field_name . '_c', $parser->_viewdefs);
 }
開發者ID:jgera,項目名稱:sugarcrm_dev,代碼行數:37,代碼來源:Bug46196Test.php


注:本文中的ModuleBuilderController::action_DeleteField方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。