forked from apigram/OETrial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOETrialModule.php
30 lines (27 loc) · 913 Bytes
/
OETrialModule.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
<?php
class OETrialModule extends CWebModule
{
public function init()
{
// this method is called when the module is being created
// you may place code here to customize the module or the application
// import the module-level models and components
$this->setImport(array(
'OETrial.models.*',
'OETrial.components.*',
'OETrial.controllers.*',
'OECaseSearch.components.DBProviderInterface',
'OECaseSearch.models.CaseSearchParameter'
));
}
public function beforeControllerAction($controller, $action)
{
if (parent::beforeControllerAction($controller, $action)) {
// this method is called before any module controller action is performed
// you may place customized code here
return true;
} else {
return false;
}
}
}