1. 新建一个类继承MantisPlugin
。
2. 实现类下方法.
- register() 注册你的插件,至少set name and version
一些参数如下。
/**
* name - Your plugin's full name. Required value.
*/
public $name = null;
/**
* description - A full description of your plugin.
*/
public $description = null;
/**
* page - The name of a plugin page for further information and administration.
*/
public $page = null;
/**
* version - Your plugin's version string. Required value.
*/
public $version = null;
/**
* requires - An array of key/value pairs of basename/version plugin dependencies.
public $requires = null;