forked from sensorario/sensorario-comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSensorariocommentsModule.php
66 lines (54 loc) · 1.36 KB
/
SensorariocommentsModule.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* A Yii module that provide comments Facebook like.
*
* PHP version 5
*
* @category Module
* @package Sensorario\Modules\SensorarioComments;
* @author Simone Gentili <[email protected]>
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/sensorario/sensorariocomments github repository
*/
/**
* Ajax module for comments in Yii 1.1
*
* @category Module
* @package Sensorario\Modules\SensorarioComments;
* @author Simone Gentili <[email protected]>
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/sensorario/sensorariocomments github repository
*/
class SensorariocommentsModule extends CWebModule
{
/**
* init
*
* @return booelan true
*/
public function init()
{
$imports = array(
'sensorariocomments.models.*',
'sensorariocomments.components.*',
);
$this->setImport($imports);
return true;
}
/**
* beforeControllerAction
*
* @param type $controller A controller
* @param type $action An action
*
* @return boolean
*/
public function beforeControllerAction($controller, $action)
{
if (parent::beforeControllerAction($controller, $action)) {
return true;
} else {
return false;
}
}
}