Public Member Functions | |
| __construct ($plugin, $validate=true) | |
| Load a plugin package from mod/$id or by full path. | |
| isValid () | |
| Checks if this is a valid Elgg plugin. | |
| getManifest () | |
| Returns a parsed manifest file. | |
| getTextFilenames () | |
| Returns an array of present and readable text files. | |
| checkDependencies ($full_report=false) | |
| Returns if the Elgg system meets the plugin's dependency requirements. | |
| getID () | |
| Returns the Plugin ID. | |
| getError () | |
| Returns the last error message. | |
Protected Attributes | |
| $manifest | |
| $path | |
| $valid = null | |
| $id | |
Definition at line 19 of file ElggPluginPackage.php.
| ElggPluginPackage::__construct | ( | $ | plugin, | |
| $ | validate = true | |||
| ) |
Load a plugin package from mod/$id or by full path.
| string | $plugin The ID (directory name) or full path of the plugin. | |
| bool | $validate Automatically run isValid()? |
| PluginException |
Definition at line 105 of file ElggPluginPackage.php.
| ElggPluginPackage::checkDependencies | ( | $ | full_report = false |
) |
Returns if the Elgg system meets the plugin's dependency requirements.
This includes both requires and conflicts.
Full reports can be requested. The results are returned as an array of arrays in the form array( 'type' => requires|conflicts, 'dep' => array( dependency array ), 'status' => bool if depedency is met, 'comment' => optional comment to display to the user. )
| bool | $full_report Return a full report. |
Definition at line 332 of file ElggPluginPackage.php.
| ElggPluginPackage::getError | ( | ) |
Returns the last error message.
Definition at line 636 of file ElggPluginPackage.php.
| ElggPluginPackage::getID | ( | ) |
| ElggPluginPackage::getManifest | ( | ) |
Returns a parsed manifest file.
Definition at line 267 of file ElggPluginPackage.php.
| ElggPluginPackage::getTextFilenames | ( | ) |
Returns an array of present and readable text files.
Definition at line 309 of file ElggPluginPackage.php.
| ElggPluginPackage::isValid | ( | ) |
Checks if this is a valid Elgg plugin.
Checks for requires files as defined at the start of this class. Will check require manifest fields via ElggPluginManifest for Elgg 1.8 plugins.
Definition at line 163 of file ElggPluginPackage.php.
ElggPluginPackage::$id [protected] |
Definition at line 95 of file ElggPluginPackage.php.
ElggPluginPackage::$manifest [protected] |
Definition at line 74 of file ElggPluginPackage.php.
ElggPluginPackage::$path [protected] |
Definition at line 81 of file ElggPluginPackage.php.
ElggPluginPackage::$valid = null [protected] |
Definition at line 88 of file ElggPluginPackage.php.
1.6.3