mirror of
https://github.com/RainLoop/rainloop-webmail.git
synced 2026-02-01 11:34:25 +01:00
30 lines
554 B
PHP
30 lines
554 B
PHP
<?php
|
|
|
|
class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|
{
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function Init()
|
|
{
|
|
$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()
|
|
));
|
|
}
|
|
}
|
|
|