forked from schmunk42/p3widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP3WidgetsModule.php
More file actions
60 lines (56 loc) · 1.28 KB
/
P3WidgetsModule.php
File metadata and controls
60 lines (56 loc) · 1.28 KB
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
<?php
/**
* Class File
*
* @author Tobias Munk <schmunk@usrbin.de>
* @link http://www.phundament.com/
* @copyright Copyright © 2005-2010 diemeisterei GmbH
* @license http://www.phundament.com/license/
*/
/**
* Description ...
*
* Detailed info
* <pre>
* <?php
* $this->widget(
* 'p3widgets.components.P3WidgetContainer',
* array(
* 'id'=>'main',
* #'checkAccess'=>false //disables checkAccess feature
* )
* );
* ?>
* </pre>
* {@link DefaultController}
*
* @author Tobias Munk <schmunk@usrbin.de>
* @version $Id$
* @package p3widgets
* @since 3.0
*/
class P3WidgetsModule extends CWebModule
{
public $adminRole = 'admin';
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(
'p3widgets.models.*',
'p3widgets.components.*',
));
}
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;
}
}