Stud.IP
2.0 Revision 48548
|
Public Member Functions | |
installPlugin ($filename) | |
installPluginFromURL ($plugin_url) | |
installPluginByName ($pluginname) | |
uninstallPlugin ($plugin) | |
getPluginManifest ($plugindir) | |
getInstitutes () | |
getPluginTypes () | |
getUpdateInfo ($plugins) |
Model code for plugin administration tasks.
getInstitutes | ( | ) |
Get a list of all available institutes.
getPluginManifest | ( | $plugindir | ) |
Read the manifest of the plugin in the given directory. Returns NULL if the manifest cannot be found.
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 |
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 |