Stud.IP
6.1
|
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.
string | $name | name of the plgin |
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.
string | $search | search string |
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>
string | $url | plugin repository url |
|
protected |
Register a new plugin in this repository.
string | $name | plugin name |
array | $meta_data | plugin meta data |