content_module   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A main() 0 12 1
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\content\acp;
11
12
/**
13
 * @property string tpl_name
14
 * @property string page_title
15
 */
16
class content_module
17
{
18
	public $u_action;
19
20
	/**
21
	 *
22
	 */
23
	public function main()
24
	{
25
		global $phpbb_container, $request;
26
27
		$action = $request->variable('do', 'index');
28
		$content_type = $request->variable('type', '');
29
30
		$admin_controller = $phpbb_container->get('blitze.content.admin.controller');
31
		$admin_controller->handle($action, $content_type, $this->u_action);
32
33
		$this->tpl_name = 'acp_content';
34
		$this->page_title = 'CONTENT_TYPES';
35
	}
36
}
37