Esempio n. 1
0
 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')))));
 }
Esempio n. 2
0
 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)));
 }
Esempio n. 3
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ImportExportBehavior' => array('class' => 'ImportExportBehavior')));
 }
Esempio n. 4
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ServiceRoutingBehavior' => array('class' => 'ServiceRoutingBehavior'), 'QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior')));
 }
Esempio n. 5
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array('Contacts' => array('accountName' => 'company')))));
 }
Esempio n. 6
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('ActionsQuickCreateRelationshipBehavior' => array('class' => 'ActionsQuickCreateRelationshipBehavior', 'attributesOfNewRecordToUpdate' => array())));
 }
Esempio n. 7
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2MobileControllerBehavior' => array('class' => 'application.modules.mobile.components.behaviors.X2MobileControllerBehavior'), 'QuickCreateRelationshipBehavior' => array('class' => 'QuickCreateRelationshipBehavior')));
 }
Esempio n. 8
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2MobileControllerBehavior' => array('class' => 'application.modules.mobile.components.behaviors.' . 'X2MobileProfileControllerBehavior'), 'ImportExportBehavior' => array('class' => 'ImportExportBehavior')));
 }
Esempio n. 9
0
 /**
  * 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')))));
 }
Esempio n. 10
0
 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)));
 }
Esempio n. 11
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('CommonSiteControllerBehavior' => array('class' => 'application.components.CommonSiteControllerBehavior')));
 }
Esempio n. 12
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array());
 }
Esempio n. 13
0
 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')))));
 }
Esempio n. 14
0
 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2MobileControllerBehavior' => array('class' => 'application.modules.mobile.components.behaviors.' . 'X2MobileSiteControllerBehavior'), 'CommonSiteControllerBehavior' => array('class' => 'application.components.CommonSiteControllerBehavior')));
 }