-
Notifications
You must be signed in to change notification settings - Fork 2
/
AccountingModule.php
51 lines (44 loc) · 1.21 KB
/
AccountingModule.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
<?php
class AccountingModule extends HWebModule
{
public function behaviors()
{
return array(
'SpaceModuleBehavior' => array(
'class' => 'application.modules_core.space.behaviors.SpaceModuleBehavior',
),
'UserModuleBehavior' => array(
'class' => 'application.modules_core.user.behaviors.UserModuleBehavior',
),
);
}
/*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(
'accounting.models.*',
'accounting.components.*',
));
} */
public function getSpaceModuleDescription()
{
return 'Adds a transaction to this SACCO.';
}
public function getUserModuleDescription()
{
return 'chama transaction';
}
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;
}
}