mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +03:00
Extend \Mibew\Plugin\PluginInterface
This commit is contained in:
parent
414b5c6b60
commit
16d48592cc
@ -29,6 +29,14 @@ interface PluginInterface
|
||||
*/
|
||||
public function getWeight();
|
||||
|
||||
/**
|
||||
* Builds base path for plugin files. This path is relative to Mibew root
|
||||
* and does not contain neither leading nor trailing slash.
|
||||
*
|
||||
* @return string Base path for plugin files
|
||||
*/
|
||||
public function getFilesPath();
|
||||
|
||||
/**
|
||||
* Indicates if plugin has been initialized correctly or not.
|
||||
*
|
||||
@ -56,4 +64,31 @@ interface PluginInterface
|
||||
* @return array List of plugin's dependencies.
|
||||
*/
|
||||
public static function getDependencies();
|
||||
|
||||
/**
|
||||
* Returns some info about plugin such as human-readable name, description,
|
||||
* version, etc.
|
||||
*
|
||||
* At the moment this info is not used at all, so a plugin can return an
|
||||
* empty array.
|
||||
*
|
||||
* @return array Associative array with plugin info
|
||||
*/
|
||||
public static function getInfo();
|
||||
|
||||
/**
|
||||
* Makes all actions that are needed to install the plugin.
|
||||
*
|
||||
* @return boolean True if the plugin was successfully installed and false
|
||||
* otherwise.
|
||||
*/
|
||||
public static function install();
|
||||
|
||||
/**
|
||||
* Makes all actions that are needed to uninstall the plugin.
|
||||
*
|
||||
* @return boolean True if the plugin was successfully uninstalled and false
|
||||
* otherwise.
|
||||
*/
|
||||
public static function uninstall();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user