You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
768 B
55 lines
768 B
3 weeks ago
|
<?php
|
||
|
|
||
|
namespace addons\{%name%};
|
||
|
|
||
|
use app\common\library\Menu;
|
||
|
use think\Addons;
|
||
|
|
||
|
/**
|
||
|
* 插件
|
||
|
*/
|
||
|
class {%addonClassName%} extends Addons
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* 插件安装方法
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function install()
|
||
|
{
|
||
|
{%addonInstallMenu%}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 插件卸载方法
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function uninstall()
|
||
|
{
|
||
|
{%addonUninstallMenu%}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 插件启用方法
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function enable()
|
||
|
{
|
||
|
{%addonEnableMenu%}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 插件禁用方法
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function disable()
|
||
|
{
|
||
|
{%addonDisableMenu%}
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|