Definition at line 19 of file ElggPluginPackage.php.
ElggPluginPackage::__construct |
( |
|
$plugin, |
|
|
|
$validate = true |
|
) |
| |
Load a plugin package from mod/$id or by full path.
- Parameters
-
string | $plugin | The ID (directory name) or full path of the plugin. |
bool | $validate | Automatically run isValid()? |
- Exceptions
-
Definition at line 102 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. )
- Parameters
-
bool | $full_report | Return a full report. |
- Returns
- bool|array
Definition at line 382 of file ElggPluginPackage.php.
ElggPluginPackage::getError |
( |
| ) |
|
ElggPluginPackage::getID |
( |
| ) |
|
ElggPluginPackage::getManifest |
( |
| ) |
|
ElggPluginPackage::getTextFilenames |
( |
| ) |
|
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 for Elgg 1.8 plugins.
- Note
- This doesn't check dependencies or conflicts. Use ElggPluginPackage::canActivate()or@link\ElggPluginPackage::checkDependencies()forthat.@returnbool
Definition at line 158 of file ElggPluginPackage.php.
ElggPluginPackage::$manifest |
|
protected |
ElggPluginPackage::$valid = null |
|
protected |
const ElggPluginPackage::STATIC_CONFIG_FILENAME = 'elgg-plugin.php' |
The documentation for this class was generated from the following file: