Elgg
Version 4.3
|
Locates and registers both core and plugin upgrades. More...
Public Member Functions | |
__construct (Plugins $plugins) | |
Constructor. More... | |
locate () | |
Looks for upgrades and saves them as ElggUpgrade entities. More... | |
getUpgrade ($class, $component_id) | |
Gets intance of an ElggUpgrade based on the given class and id. More... | |
getBatch ($class) | |
Validates class and returns an instance of batch. More... | |
upgradeExists ($upgrade_id) | |
Check if there already is an ElggUpgrade for this upgrade. More... | |
getUpgradeByClass (string $class_name) | |
Check if there already is an ElggUpgrade for this upgrade class. More... | |
Locates and registers both core and plugin upgrades.
Definition at line 16 of file Locator.php.
Elgg\Upgrade\Locator::__construct | ( | Plugins | $plugins | ) |
Elgg\Upgrade\Locator::getBatch | ( | $class | ) |
Validates class and returns an instance of batch.
string | $class | The fully qualified class name |
InvalidArgumentException |
Definition at line 121 of file Locator.php.
Elgg\Upgrade\Locator::getUpgrade | ( | $class, | |
$component_id | |||
) |
Gets intance of an ElggUpgrade based on the given class and id.
string | $class | Class implementing Elgg |
string | $component_id | Either plugin_id or "core" |
Definition at line 81 of file Locator.php.
Elgg\Upgrade\Locator::getUpgradeByClass | ( | string | $class_name | ) |
Check if there already is an ElggUpgrade for this upgrade class.
string | $class_name | name of the class used for the upgrade |
Definition at line 166 of file Locator.php.
Elgg\Upgrade\Locator::locate | ( | ) |
Looks for upgrades and saves them as ElggUpgrade entities.
Definition at line 37 of file Locator.php.
Elgg\Upgrade\Locator::upgradeExists | ( | $upgrade_id | ) |
Check if there already is an ElggUpgrade for this upgrade.
string | $upgrade_id | Id in format <plugin_id>:<yyymmddnn> |
Definition at line 140 of file Locator.php.