Stud.IP
6.0
|
Public Member Functions | |
installPlugin ($filename) | |
installPluginFromURL ($plugin_url) | |
installPluginByName ($pluginname) | |
uninstallPlugin ($plugin) | |
getPluginTypes () | |
getUpdateInfo ($plugins) | |
getMigrationInfo () | |
migratePlugin ($plugin_id) | |
scanPluginDirectory () | |
registerPlugin ($plugindir) | |
Model code for plugin administration tasks.
getMigrationInfo | ( | ) |
Fetch migration information plugins. This method returns for each plugin: current schema version and top migration version, if available.
getPluginTypes | ( | ) |
Get a list of the types of all installed plugins.
getUpdateInfo | ( | $plugins | ) |
Fetch update information for a list of plugins. This method returns for each plugin: the plugin name, current version and meta data of the plugin update, if available.
array | $plugins | array of plugin meta data |
installPlugin | ( | $filename | ) |
Install a new plugin. Extracts the contents of the uploaded file, checks the manifest, creates the new plugin directory und finally registers the plugin in the database.
string | $filename | path to the uploaded file |
installPluginByName | ( | $pluginname | ) |
Download and install a plugin with the given name from the plugin repository.
string | $pluginname | name of the plugin to install |
installPluginFromURL | ( | $plugin_url | ) |
Download and install a new plugin from the given URL.
string | $plugin_url | the URL of the plugin package |
migratePlugin | ( | $plugin_id | ) |
migrate plugin to top migration
integer | $plugin_id |
registerPlugin | ( | $plugindir | ) |
registers plugin at given path in database
string | $plugindir | path to plugin |
PluginInstallationException |
scanPluginDirectory | ( | ) |
scans PLUGINS_PATH for plugin.manifest files belonging to not registered plugins
uninstallPlugin | ( | $plugin | ) |
Uninstall the given plugin from the system. It will remove the database schema and all the plugin's files.
array | $plugin | meta data of plugin |