Completed
Push — master ( cd0bb4...2c65ad )
by Nazar
04:31
created

components::components_databases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 7
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * @package    CleverStyle CMS
4
 * @subpackage System module
5
 * @category   modules
6
 * @author     Nazar Mokrynskyi <[email protected]>
7
 * @copyright  Copyright (c) 2015, Nazar Mokrynskyi
8
 * @license    MIT License, see license.txt
9
 */
10
namespace cs\modules\System\admin\Controller;
11
use
12
	cs\Config,
13
	cs\DB,
14
	cs\Index,
15
	cs\Language,
16
	h;
17
trait components {
18
	static function components_blocks () {
19
		$Index       = Index::instance();
20
		$Index->form = false;
21
		$Index->content(
22
			h::cs_system_admin_blocks_list()
23
		);
24
	}
25
	static function components_databases () {
26
		$Index       = Index::instance();
27
		$Index->form = false;
28
		$Index->content(
29
			h::cs_system_admin_databases_list()
30
		);
31
	}
32
	static function components_modules () {
33
		$Index       = Index::instance();
34
		$Index->form = false;
35
		$Index->content(
36
			h::cs_system_admin_modules_list()
37
		);
38
	}
39
	static function components_plugins () {
40
		$Index       = Index::instance();
41
		$Index->form = false;
42
		$Index->content(
43
			h::cs_system_admin_plugins_list()
44
		);
45
	}
46
	static function components_storages () {
47
		$Index       = Index::instance();
48
		$Index->form = false;
49
		$Index->content(
50
			h::cs_system_admin_storages_list()
51
		);
52
	}
53
}
54