2016-06-05 04:26:50 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return void
|
|
|
|
*/
|
2020-08-31 00:04:54 +08:00
|
|
|
public function Init() : void
|
2016-06-05 04:26:50 +08:00
|
|
|
{
|
|
|
|
$this->UseLangs(true); // start use langs folder
|
|
|
|
|
|
|
|
$this->addJs('js/CustomAdminSettings.js', true); // add js file
|
|
|
|
|
|
|
|
$this->addAjaxHook('AjaxAdminGetData', 'AjaxAdminGetData');
|
|
|
|
|
|
|
|
$this->addTemplate('templates/PluginCustomAdminSettingnTab.html', true);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function AjaxAdminGetData()
|
|
|
|
{
|
|
|
|
return $this->ajaxResponse(__FUNCTION__, array(
|
|
|
|
'PHP' => phpversion()
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|