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


PHP X2Model::behaviors方法代碼示例

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


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

示例1: behaviors

 public function behaviors()
 {
     $that = $this;
     return array_merge(parent::behaviors(), array('AssociatedMediaBehavior' => array('class' => 'application.components.behaviors.AssociatedMediaBehavior', 'fileAttribute' => 'upload', 'associationType' => 'topicReply', 'getAssociationId' => function () use($that) {
         return $that->originalPost->id;
     }), 'X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'topics'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'InlineEmailModelBehavior' => array('class' => 'application.components.InlineEmailModelBehavior')));
 }
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:7,代碼來源:Topics.php

示例2: behaviors

 public function behaviors()
 {
     $behaviors = array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'groups')));
     unset($behaviors['relationships']);
     return $behaviors;
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:6,代碼來源:Groups.php

示例3: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'topics'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'InlineEmailModelBehavior' => array('class' => 'application.components.InlineEmailModelBehavior')));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:Topics.php

示例4: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'marketing'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'tags' => array('class' => 'TagBehavior', 'disableTagScanning' => true)));
 }
開發者ID:shayanyi,項目名稱:CRM,代碼行數:4,代碼來源:Campaign.php

示例5: behaviors

 public function behaviors()
 {
     $behaviors = array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'media', 'autoCompleteSource' => null), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false)));
     unset($behaviors['changelog']);
     return $behaviors;
 }
開發者ID:xl602,項目名稱:X2CRM,代碼行數:6,代碼來源:Media.php

示例6: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'opportunities'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false)));
 }
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:4,代碼來源:Opportunity.php

示例7: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'x2Leads'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'X2ModelConversionBehavior' => array('class' => 'application.components.recordConversion.X2ModelConversionBehavior'), 'ContactsNameBehavior' => array('class' => 'application.components.ContactsNameBehavior', 'overwriteName' => false)));
 }
開發者ID:keyeMyria,項目名稱:CRM,代碼行數:4,代碼來源:X2Leads.php

示例8: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'x2Leads'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'X2ModelConversionBehavior' => array('class' => 'application.components.recordConversion.X2ModelConversionBehavior', 'deleteConvertedRecord' => false, 'convertedField' => 'converted', 'conversionDateField' => 'conversionDate', 'convertedToTypeField' => 'convertedToType', 'convertedToIdField' => 'convertedToId'), 'ContactsNameBehavior' => array('class' => 'application.components.ContactsNameBehavior')));
 }
開發者ID:tymiles003,項目名稱:X2CRM,代碼行數:4,代碼來源:X2Leads.php

示例9: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'contacts'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'X2AddressBehavior' => array('class' => 'application.components.X2AddressBehavior'), 'X2DuplicateBehavior' => array('class' => 'application.components.X2DuplicateBehavior'), 'ContactsNameBehavior' => array('class' => 'application.components.ContactsNameBehavior')));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:Contacts.php

示例10: behaviors

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

示例11: behaviors

 public function behaviors()
 {
     return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'docs'), 'ERememberFiltersBehavior' => array('class' => 'application.components.ERememberFiltersBehavior', 'defaults' => array(), 'defaultStickOnClear' => false), 'FileSystemObjectBehavior' => array('class' => 'application.modules.docs.components.FileSystemObjectBehavior', 'folderRefName' => 'folderId')));
 }
開發者ID:dsyman2,項目名稱:X2CRM,代碼行數:4,代碼來源:Docs.php


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