CustomAdminSettingsTabPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Init() 0 10 1
A AjaxAdminGetData() 0 6 1
1
<?php
2
3
class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
4
{
5
	/**
6
	 * @return void
7
	 */
8
	public function Init()
9
	{
10
		$this->UseLangs(true); // start use langs folder
11
12
		$this->addJs('js/CustomAdminSettings.js', true); // add js file
13
14
		$this->addAjaxHook('AjaxAdminGetData', 'AjaxAdminGetData');
15
16
		$this->addTemplate('templates/PluginCustomAdminSettingnTab.html', true);
17
	}
18
19
	/**
20
	 * @return array
21
	 */
22
	public function AjaxAdminGetData()
23
	{
24
		return $this->ajaxResponse(__FUNCTION__, array(
25
			'PHP' => phpversion()
26
		));
27
	}
28
}
29
30