This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
forked from openeyeswales/SupCoPhonelog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSupCoPhonelogModule.php
executable file
·55 lines (49 loc) · 2.09 KB
/
SupCoPhonelogModule.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
<?php
/**
* OpenEyes
*
* (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011
* (C) OpenEyes Foundation, 2011-2012
* This file is part of OpenEyes.
* OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see <http://www.gnu.org/licenses/>.
*
* @package OpenEyes
* @link http://www.openeyes.org.uk
* @author OpenEyes <[email protected]>
* @copyright Copyright (c) 2008-2011, Moorfields Eye Hospital NHS Foundation Trust
* @copyright Copyright (c) 2011-2012, OpenEyes Foundation
* @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
*/
/**
* This is the module class for $this->moduleSuffix
*
* The followings are the available columns in table:
* @property string $moduleShortSuffix
*/
class SupCoPhonelogModule extends BaseEventTypeModule
{
// this property is really only relevant to gii auto-generation, specifically
// for updates to the module through gii
public $moduleShortSuffix;
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(
'SupCoPhonelog.models.*',
'SupCoPhonelog.components.*',
));
$this->moduleShortSuffix = "phonelog";
}
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;
}
}