Elgg
Version 3.0
|
Locates and registers both core and plugin upgrades. More...
Public Member Functions | |
__construct (Plugins $plugins, LoggerInterface $logger) | |
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... | |
Locates and registers both core and plugin upgrades.
WARNING: API IN FLUX. DO NOT USE DIRECTLY.
Definition at line 20 of file Locator.php.
Elgg\Upgrade\Locator::__construct | ( | Plugins | $plugins, |
LoggerInterface | $logger | ||
) |
Constructor.
Plugins | $plugins | Plugins |
LoggerInterface | $logger | Logger |
Definition at line 40 of file Locator.php.
Elgg\Upgrade\Locator::getBatch | ( | $class | ) |
Validates class and returns an instance of batch.
string | $class | The fully qualified class name |
Definition at line 133 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 94 of file Locator.php.
Elgg\Upgrade\Locator::locate | ( | ) |
Looks for upgrades and saves them as ElggUpgrade entities.
Definition at line 50 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 152 of file Locator.php.