CustomAdminSettingsTabPlugin::AjaxAdminGetData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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