Свойство | Type | Description | |
---|---|---|---|
$apiVersion | integer | The API version of the manifest. | |
$namespace_root | This is in the format http://www.elgg.org/plugin_manifest/ |
||
$parser | ElggPluginManifestParser18 | The parser object | |
$pluginID | string | The optional plugin id this manifest belongs to. |
Méthode | Description | |
---|---|---|
__construct ( mixed $manifest, string $plugin_id = null ) | Load a manifest file, XmlElement or path to manifest.xml file | |
getActivateOnInstall ( ) : boolean | Should this plugin be activated when Elgg is installed | |
getApiVersion ( ) : integer | Returns the API version in use. | |
getAuthor ( ) : string | Returns the plugin author. | |
getBlurb ( ) : string | Return the short description | |
getBugTrackerURL ( ) : string | Returns the bug tracker page | |
getCategories ( ) : array | Return the categories listed for this plugin | |
getConflicts ( ) : array | Returns the conflicts listed | |
getContributors ( ) : array | Return the contributors listed. | |
getCopyright ( ) : string | Return the copyright | |
getDescription ( ) : string | Return the description | |
getDonationsPageURL ( ) : string | Returns the donations page | |
getFriendlyCategory ( string $category ) : string |
Returns a category's friendly name. This can be localized by
defining the string 'admin:plugins:category: |
|
getID ( ) : string | Return the plugin ID required by the author. If getPluginID() does not match this, the plugin should not be started. | |
getLicense ( ) : string | Returns the license | |
getManifest ( ) : array | Returns the manifest array. | |
getName ( ) : string | Returns the plugin name | |
getPluginID ( ) : string | Returns the plugin ID. | |
getProvides ( ) : array | Return the list of provides by this plugin. | |
getRepositoryURL ( ) : string | Returns the repository url | |
getRequires ( ) : array | Returns the dependencies listed. | |
getScreenshots ( ) : array | Return the screenshots listed. | |
getSuggests ( ) : array | Returns the suggests elements. | |
getVersion ( ) : float | Returns the version of the plugin. | |
getWebsite ( ) : string | Return the website |
Méthode | Description | |
---|---|---|
buildStruct ( array $struct, array $array ) : array | Normalizes an array into the structure specified |
Méthode | Description | |
---|---|---|
normalizeDep ( array $dep ) : array | Normalizes a dependency array using the defined structs. |
public __construct ( mixed $manifest, string $plugin_id = null ) | ||
$manifest | mixed | A string, XmlElement, or path of a manifest file. |
$plugin_id | string | Optional ID of the owning plugin. Used to fill in some values automatically. |
public getActivateOnInstall ( ) : boolean | ||
Résultat | boolean |
public getApiVersion ( ) : integer | ||
Résultat | integer |
public getBugTrackerURL ( ) : string | ||
Résultat | string |
public getCategories ( ) : array | ||
Résultat | array |
public getConflicts ( ) : array | ||
Résultat | array |
public getContributors ( ) : array | ||
Résultat | array |
public getDescription ( ) : string | ||
Résultat | string |
public getDonationsPageURL ( ) : string | ||
Résultat | string |
public static getFriendlyCategory ( string $category ) : string | ||
$category | string | The category as defined in the manifest. |
Résultat | string | A human-readable category |
public getManifest ( ) : array | ||
Résultat | array |
public getProvides ( ) : array | ||
Résultat | array |
public getRepositoryURL ( ) : string | ||
Résultat | string |
public getRequires ( ) : array | ||
Résultat | array |
public getScreenshots ( ) : array | ||
Résultat | array |
public getSuggests ( ) : array | ||
Résultat | array |
public getVersion ( ) : float | ||
Résultat | float |
protected int $apiVersion | ||
Résultat | integer |
protected $namespace_root |
protected ElggPluginManifestParser18 $parser | ||
Résultat | ElggPluginManifestParser18 |
protected string $pluginID | ||
Résultat | string |