当前位置: 首页>>代码示例>>PHP>>正文


PHP CActiveRecordBehavior::events方法代码示例

本文整理汇总了PHP中CActiveRecordBehavior::events方法的典型用法代码示例。如果您正苦于以下问题:PHP CActiveRecordBehavior::events方法的具体用法?PHP CActiveRecordBehavior::events怎么用?PHP CActiveRecordBehavior::events使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CActiveRecordBehavior的用法示例。


在下文中一共展示了CActiveRecordBehavior::events方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: events

 public function events()
 {
     if (is_subclass_of($this->getOwner(), 'BaseMongoDocument')) {
         $tmp = parent::events();
     } else {
         $tmp = array();
     }
     return array_merge($tmp, array('onBeforeEmbeddedDocsInit' => 'beforeEmbeddedDocsInit', 'onAfterEmbeddedDocsInit' => 'afterEmbeddedDocsInit', 'onBeforeToArray' => 'beforeToArray', 'onAfterToArray' => 'afterToArray'));
 }
开发者ID:vangogogo,项目名称:justsns,代码行数:9,代码来源:BaseMongoDocumentBehavior.php

示例2: events

 public function events()
 {
     return array_merge(parent::events(), array('onAfterCreate' => 'afterCreate', 'onAfterUpdate' => 'afterUpdate'));
 }
开发者ID:dsyman2,项目名称:X2CRM,代码行数:4,代码来源:X2ChangeLogBehavior.php

示例3: events

 public function events()
 {
     return array_merge(parent::events(), array('onAfterFind' => 'afterFind'));
 }
开发者ID:tymiles003,项目名称:X2CRM,代码行数:4,代码来源:ContactsNameBehavior.php

示例4: events

 public function events()
 {
     return array_merge(parent::events(), array('onBeforeEmbeddedDocsInit' => 'beforeEmbeddedDocsInit', 'onAfterEmbeddedDocsInit' => 'afterEmbeddedDocsInit', 'onBeforeToArray' => 'beforeToArray', 'onAfterToArray' => 'afterToArray'));
 }
开发者ID:niranjan2m,项目名称:Voyanga,代码行数:4,代码来源:EMongoDocumentBehavior.php

示例5: events

 public function events()
 {
     return array_merge(parent::events(), array('onBeforeFormInit' => 'beforeFormInit', 'onAfterFormInit' => 'afterFormInit', 'onBeforeGridInitColumns' => 'beforeGridInitColumns', 'onAfterGridInitColumns' => 'afterGridInitColumns', 'onBeforeGridInit' => 'beforeGridInit', 'onAfterGridInit' => 'afterGridInit'));
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:4,代码来源:ActiveRecordBehavior.php

示例6: events

 /**
  * Extend standard AR behavior events
  *
  * @return array
  */
 public function events()
 {
     return array_merge(parent::events(), array('onUnsafeAttribute' => 'unsafeAttribute'));
 }
开发者ID:nov072008,项目名称:yiitesting,代码行数:9,代码来源:WFormBehavior.php

示例7: events

 /**
  * Declares events and the corresponding event handler methods.
  * 
  * @return array handled events
  *
  * @see CBehavior::events
  */
 public function events()
 {
     return CMap::mergeArray(parent::events(), array('onBeforePublish' => 'beforePublish', 'onAfterPublish' => 'afterPublish', 'onBeforeUnpublish' => 'beforeUnpublish', 'onAfterUnpublish' => 'afterUnpublish', 'onBeforeRevert' => 'beforeRevert', 'onAfterRevert' => 'afterRevert', 'onAfterCreateRevision' => 'afterCreateRevision'));
 }
开发者ID:hansenmakangiras,项目名称:disperindag,代码行数:11,代码来源:SandboxChildBehavior.php

示例8: events

 /**
  * Declares events and the event handler methods
  * @return array
  */
 public function events()
 {
     return array_merge(parent::events(), array('onBeforeSave' => 'serializeAttributes', 'onAfterSave' => 'unserializeAttributes', 'onAfterFind' => 'unserializeAttributes'));
 }
开发者ID:sundgaarden,项目名称:dashboard,代码行数:8,代码来源:SerializeBehavior.php


注:本文中的CActiveRecordBehavior::events方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。