forked from canni/YiiMongoDbSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEMongoDocumentBehavior.php
36 lines (34 loc) · 954 Bytes
/
EMongoDocumentBehavior.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* EMongoDocumentBehavior.php
*
* PHP version 5.2+
*
* @author Dariusz Górecki <[email protected]>
* @author Invenzzia Group, open-source division of CleverIT company http://www.invenzzia.org
* @copyright 2011 CleverIT http://www.cleverit.com.pl
* @license http://www.yiiframework.com/license/ BSD license
* @version 1.3
* @category ext
* @package ext.YiiMongoDbSuite
* @since v1.0
*/
/**
* @since v1.0
*/
class EMongoDocumentBehavior extends CActiveRecordBehavior
{
public function events()
{
return array_merge(parent::events(), array(
'onBeforeEmbeddedDocsInit'=>'beforeEmbeddedDocsInit',
'onAfterEmbeddedDocsInit'=>'afterEmbeddedDocsInit',
'onBeforeToArray'=>'beforeToArray',
'onAfterToArray'=>'afterToArray'
));
}
public function beforeEmbeddedDocsInit($event){}
public function afterEmbeddedDocsInit($event){}
public function beforeToArray($event){}
public function afterToArray($event){}
}