Completed
Push — master ( 8555c7...3d8b58 )
by Angus
02:42
created

AdminPanel   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 4

Importance

Changes 0
Metric Value
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 5
lcom 2
cbo 4

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A index() 0 6 1
A update_normal() 0 4 1
A update_custom() 0 4 1
A update_titles() 0 4 1
1
<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class AdminPanel extends Admin_Controller {
4
	public function __construct() {
5
		parent::__construct();
6
7
		$this->load->helper('form');
8
		$this->load->library('form_validation');
9
	}
10
11
	public function index() {
12
		$this->header_data['title'] = "Admin Panel";
13
		$this->header_data['page']  = "admin-panel";
14
15
		$this->_render_page('AdminPanel');
16
	}
17
18
	public function update_normal() {
19
		set_time_limit(0);
20
		$this->Tracker->admin->updateLatestChapters();
21
	}
22
	public function update_custom() {
23
		set_time_limit(0);
24
		$this->Tracker->admin->updateCustom();
25
	}
26
	public function update_titles() {
27
		set_time_limit(0);
28
		$this->Tracker->admin->updateTitles();
29
	}
30
}
31