Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
PluginAdministration Class Reference
Collaboration diagram for PluginAdministration:
Collaboration graph

Public Member Functions

 installPlugin ($filename)
 installPluginFromURL ($plugin_url)
 installPluginByName ($pluginname)
 uninstallPlugin ($plugin)
 getPluginManifest ($plugindir)
 getInstitutes ()
 getPluginTypes ()
 getUpdateInfo ($plugins)

Detailed Description

Model code for plugin administration tasks.

Member Function Documentation

getInstitutes ( )

Get a list of all available institutes.

Here is the call graph for this function:

getPluginManifest (   $plugindir)

Read the manifest of the plugin in the given directory. Returns NULL if the manifest cannot be found.

Returns
array containing the manifest information

Here is the caller graph for this function:

getPluginTypes ( )

Get a list of the types of all installed plugins.

Returns
array list of plugin types

Here is the call graph for this function:

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.

Parameters
array$pluginsarray of plugin meta data

Here is the call graph for this function:

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.

Parameters
string$filenamepath to the uploaded file

Here is the call graph for this function:

Here is the caller graph for this function:

installPluginByName (   $pluginname)

Download and install a plugin with the given name from the plugin repository.

Parameters
string$pluginnamename of the plugin to install

Here is the call graph for this function:

installPluginFromURL (   $plugin_url)

Download and install a new plugin from the given URL.

Parameters
string$plugin_urlthe URL of the plugin package

Here is the call graph for this function:

Here is the caller graph for this function:

uninstallPlugin (   $plugin)

Uninstall the given plugin from the system. It will remove the database schema and all the plugin's files.

Parameters
array$pluginmeta data of plugin

Here is the call graph for this function:


The documentation for this class was generated from the following file: