content_module::main()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 12
ccs 0
cts 9
cp 0
crap 2
rs 10
c 0
b 0
f 0
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