Stud.IP
2.0 Revision 48548
|
Public Member Functions | |
__construct ($url=NULL) | |
readMetadata ($url) | |
getPlugin ($name) | |
getPlugins ($search=NULL) |
Protected Member Functions | |
registerPlugin ($name, $meta_data) |
Class used to locate plugins available from a plugin repository.
__construct | ( | $url = NULL | ) |
Initialize a new PluginRepository and read meta data from the given URL or the default list of URLs (if $url is NULL).
getPlugin | ( | $name | ) |
Get meta data for the plugin with the given name (if available). Always chooses the newest compatible version of the plugin.
getPlugins | ( | $search = NULL | ) |
Get meta data for all plugins whose names contain the given string. You may omit the search string to get a list of all available plugins. Returns the newest compatible version of each plugin.
readMetadata | ( | $url | ) |
Read plugin meta data from the given URL (using XML format). The structure of the XML is:
<plugins> <plugin name="DummyPlugin" <release version="2.0" url="http://plugins.example.com/dummy-2.0.zip" studipminversion="1.4" studipmaxversion="1.9"> </plugin> [...] </plugins>
|
protected |
Register a new plugin in this repository.
$name | string plugin name |
$meta_data | array of plugin meta data |