审查视图

public/plugins/rexsea_dictionary/RexseaDictionaryPlugin.php 721 字节
董瑞恩 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<?php
/**
 * 自动生成数据词典插件
 * User: rexsea
 * Date: 2017-10-19
 * Time: 9:02
 */
namespace plugins\rexsea_dictionary;

use cmf\lib\Plugin;

class RexseaDictionaryPlugin extends Plugin
{
    public $info = [
        'name'        => 'RexseaDictionary',
        'title'       => '自动生成数据词典插件',
        'description' => '自动生成数据词典插件',
        'status'      => 1,
        'author'      => 'rexsea',
        'version'     => '1.0'
    ];

    public $hasAdmin = 1;//插件是否有后台管理界面

    // 插件安装
    public function install()
    {
        return true;
    }

    // 插件卸载
    public function uninstall()
    {
        return true;
    }
}