Class ElggPluginManifest
Parses Elgg manifest.xml files.
Normalizes the values from the ElggManifestParser object.
This requires an ElggPluginManifestParser class implementation as $this->parser.
To add new parser versions, name them ElggPluginManifestParserXX where XX is the version specified in the top-level <plugin_manifest> tag's XML namespace.
public
|
#
__construct( mixed $manifest, string $plugin_id = null )
Load a manifest file, XmlElement or path to manifest.xml file |
public
integer
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
float
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
boolean
|
|
protected
array
|
|
public static
str
|
#
getFriendlyCategory( str $category )
Returns a category's friendly name. This can be localized by defining the string 'admin:plugins:category:<category>'. If no localization is found, returns the category with _ and - converted to ' ' and then ucwords()'d. |
protected
mixed
|
$parser |
|
#
The parser object |
protected
string
|
$namespace_root | 'http://www.elgg.org/plugin_manifest/' |
#
The root for plugin manifest namespaces. This is in the format http://www.elgg.org/plugin_manifest/<version> |
protected
integer
|
$apiVersion |
|
#
The API version of the manifest. |
protected
string
|
$pluginID |
|
#
The optional plugin id this manifest belongs to. |