1 | <?php |
||
12 | class Module extends \yii\base\Module |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public $layout = 'main'; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public $defaultRoute = 'dashboard'; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public $controllerNamespace = 'cornernote\dashboard\controllers'; |
||
29 | |||
30 | /** |
||
31 | * @var string name of the component to use for database access |
||
32 | */ |
||
33 | public $db = 'db'; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | public $layouts = [ |
||
39 | 'default' => 'cornernote\dashboard\layouts\DefaultLayout', |
||
40 | ]; |
||
41 | |||
42 | |||
43 | public $viewPath; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | public $dashboards = []; |
||
49 | |||
50 | /** |
||
51 | * @var array |
||
52 | */ |
||
53 | public $panels = [ |
||
54 | 'text' => 'cornernote\dashboard\panels\TextPanel', |
||
55 | ]; |
||
56 | |||
57 | /** |
||
58 | * @var array |
||
59 | */ |
||
60 | public $updateRoles; |
||
61 | |||
62 | /** |
||
63 | * @return Connection the database connection. |
||
64 | */ |
||
65 | public function getDb() |
||
69 | |||
70 | public function panelsList() |
||
83 | |||
84 | } |
||
85 |