toolbox-aoaostar/plugin/aoaostar_com/example/Install.php
2022-10-07 22:05:44 +08:00

30 lines
697 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace plugin\aoaostar_com\example;
use app\model\Plugin;
class Install implements \plugin\Install
{
# 安装时运行方法
public function Install(Plugin $model)
{
# 标题
$model->title = "HelloPluto";
# 类名、无需修改
$model->class = plugin_current_class_get(__NAMESPACE__);
# 路由、即 example
$model->alias = base_space_name(__NAMESPACE__);
# 描述
$model->desc = 'If you see this message, it means that your program is running properly.';
# 版本号
$model->version = 'v1.0';
}
# 卸载时运行方法
public function UnInstall(Plugin $model)
{
}
}