PHP Class Elgg\Upgrade\Locator

WARNING: API IN FLUX. DO NOT USE DIRECTLY.
Since: 3.0.0
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Méthode Description
__construct ( Plugins $plugins, Logger $logger, PrivateSettingsTable $privateSettings ) Constructor
getBatch ( string $class ) : boolean Validates class and returns an instance of batch
getUpgrades ( ElggPlugin $plugin ) : ElggUpgrade[] Creates new ElggUpgrade instance from plugin's static config
run ( ) : boolean Looks for upgrades and saves them as ElggUpgrade entities
upgradeExists ( string $upgrade_id ) : boolean Check if there already is an ElggUpgrade for this upgrade

Method Details

__construct() public méthode

Constructor
public __construct ( Plugins $plugins, Logger $logger, PrivateSettingsTable $privateSettings )
$plugins Elgg\Database\Plugins Plugins
$logger Elgg\Logger Logger
$privateSettings Elgg\Database\PrivateSettingsTable PrivateSettingsTable

getBatch() public méthode

Validates class and returns an instance of batch
public getBatch ( string $class ) : boolean
$class string The fully qualified class name
Résultat boolean True if valid upgrade

getUpgrades() public méthode

Creates new ElggUpgrade instance from plugin's static config
public getUpgrades ( ElggPlugin $plugin ) : ElggUpgrade[]
$plugin ElggPlugin Plugin
Résultat ElggUpgrade[]

run() public méthode

Looks for upgrades and saves them as ElggUpgrade entities
public run ( ) : boolean
Résultat boolean $pending_upgrades Are there pending upgrades

upgradeExists() public méthode

Check if there already is an ElggUpgrade for this upgrade
public upgradeExists ( string $upgrade_id ) : boolean
$upgrade_id string Id in format :
Résultat boolean