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


PHP x2base::behaviors方法代碼示例

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


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

示例1: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2MobileControllerBehavior' => array('class' => 'application.modules.mobile.components.behaviors.X2MobileControllerBehavior'), 'QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array('Contacts' => array('nameId' => 'company', 'website' => 'website', 'phone' => 'phone'), 'Opportunity' => array('accountName' => 'id')))));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:AccountsController.php

示例2: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('CampaignMailingBehavior' => array('class' => 'application.modules.marketing.components.CampaignMailingBehavior'), 'ResponseBehavior' => array('class' => 'application.components.ResponseBehavior', 'isConsole' => false, 'errorCode' => 200)));
 }
開發者ID:shayanyi,項目名稱:CRM,代碼行數:4,代碼來源:MarketingController.php

示例3: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ImportExportBehavior' => array('class' => 'ImportExportBehavior')));
 }
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:4,代碼來源:DocsController.php

示例4: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ServiceRoutingBehavior' => array('class' => 'ServiceRoutingBehavior'), 'QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior')));
 }
開發者ID:shayanyi,項目名稱:CRM,代碼行數:4,代碼來源:ServicesController.php

示例5: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array('Contacts' => array('accountName' => 'company')))));
 }
開發者ID:shuvro35,項目名稱:X2CRM,代碼行數:4,代碼來源:OpportunitiesController.php

示例6: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ActionsQuickCreateRelationshipBehavior' => array('class' => 'ActionsQuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array())));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:ActionsController.php

示例7: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2MobileControllerBehavior' => array('class' => 'application.modules.mobile.components.behaviors.' . 'X2MobileProfileControllerBehavior'), 'ImportExportBehavior' => array('class' => 'ImportExportBehavior')));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:ProfileController.php

示例8: behaviors

 /**
  * Return a list of external behaviors which are necessary.
  * @return array A merge of the parent class's behaviors with the ContactsController specific 
  *  ones
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('LeadRoutingBehavior' => array('class' => 'LeadRoutingBehavior'), 'ImportExportBehavior' => array('class' => 'ImportExportBehavior'), 'QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array('Accounts' => array('website' => 'website', 'phone' => 'phone'), 'Opportunity' => array('accountName' => 'company')))));
 }
開發者ID:shuvro35,項目名稱:X2CRM,代碼行數:9,代碼來源:ContactsController.php

示例9: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('LeadRoutingBehavior' => array('class' => 'LeadRoutingBehavior'), 'responds' => array('class' => 'application.components.ResponseBehavior', 'isConsole' => false, 'exitNonFatal' => false, 'longErrorTrace' => false), 'CommonControllerBehavior' => array('class' => 'application.components.CommonControllerBehavior', 'redirectOnNullModel' => false, 'throwOnNullModel' => false)));
 }
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:4,代碼來源:ApiController.php

示例10: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array());
 }
開發者ID:shayanyi,項目名稱:CRM,代碼行數:4,代碼來源:MediaController.php

示例11: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array('Contacts' => array('nameId' => 'company', 'website' => 'website', 'phone' => 'phone'), 'Opportunity' => array('accountName' => 'id')))));
 }
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:4,代碼來源:AccountsController.php


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