| 
    Elgg
    Version master
    
   | 
 
Locates and registers both core and plugin upgrades. More...
Public Member Functions | |
| __construct (protected 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 (string $class, ?\ElggUpgrade $upgrade=null) | |
| 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 | ( | protected Plugins | $plugins | ) | 
| Elgg\Upgrade\Locator::getBatch | ( | string | $class, | 
| ?\ElggUpgrade | $upgrade = null  | 
        ||
| ) | 
Validates class and returns an instance of batch.
| string | $class | The fully qualified class name | 
| null | \ElggUpgrade | $upgrade | The upgrade | 
| InvalidArgumentException | 
Definition at line 116 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\Upgrade\Batch | 
| string | $component_id | Either plugin_id or "core" | 
Definition at line 75 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 161 of file Locator.php.
| Elgg\Upgrade\Locator::locate | ( | ) | 
Looks for upgrades and saves them as ElggUpgrade entities.
Definition at line 31 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 135 of file Locator.php.