当前位置: 首页>>代码示例>>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;未经允许,请勿转载。