Files
swiftadmin/plugin/demo/Demo.php

59 lines
836 B
PHP
Raw Normal View History

2024-07-13 12:53:20 +08:00
<?php
namespace plugin\demo;
use app\PluginController;
/**
* 演示插件
*/
class Demo extends PluginController
{
/**
* 插件安装方法
* @return bool
*/
public function install()
{
return true;
}
/**
* 插件卸载方法
* @return bool
*/
public function uninstall()
{
return true;
}
/**
* 插件启用方法
* @return bool
*/
public function enabled()
{
return true;
}
/**
* 插件禁用方法
* @return bool
*/
public function disabled()
{
return true;
}
/**
* 测试HOOK API
* 自定义钩子
* @return bool
*/
public function testhook($params)
{
var_dump('testhook');
}
}