本文整理汇总了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')));
}
示例2: behaviors
public function behaviors()
{
$behaviors = array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'groups')));
unset($behaviors['relationships']);
return $behaviors;
}
示例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')));
}
示例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)));
}
示例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;
}
示例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)));
}
示例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)));
}
示例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')));
}
示例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')));
}
示例10: behaviors
public function behaviors()
{
return array_merge(parent::behaviors(), array('X2LinkableBehavior' => array('class' => 'X2LinkableBehavior', 'module' => 'groups')));
}
示例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')));
}