Upgrade service for Elgg.
More...
Upgrade service for Elgg.
private
Definition at line 9 of file UpgradeService.php.
Constructor.
- Parameters
-
\Elgg\i18n\Translator | $translator | Translation service |
\Elgg\EventsService | $events | Events service |
\Elgg\PluginHooksService | $hooks | Plugin hook service |
\Elgg\Database\Datalist | $datalist | Datalist table |
\Elgg\Logger | $logger | Logger |
\Elgg\Database\Mutex | $mutex | Database mutex service |
Definition at line 51 of file UpgradeService.php.
Elgg\UpgradeService::getProcessedUpgrades |
( |
| ) |
|
|
protected |
Gets a list of processes upgrades.
- Returns
- mixed Array of processed upgrade filenames or false
Definition at line 192 of file UpgradeService.php.
Elgg\UpgradeService::getUnprocessedUpgrades |
( |
|
$upgrade_files = null , |
|
|
|
$processed_upgrades = null |
|
) |
| |
|
protected |
Checks if any upgrades need to be run.
- Parameters
-
null | array | $upgrade_files | Optional upgrade files |
null | array | $processed_upgrades | Optional processed upgrades |
- Returns
- array
Definition at line 259 of file UpgradeService.php.
Elgg\UpgradeService::getUpgradeFiles |
( |
|
$upgrade_path = null | ) |
|
|
protected |
Returns a list of upgrade files relative to the $upgrade_path dir.
- Parameters
-
string | $upgrade_path | The up |
- Returns
- array|false
Definition at line 221 of file UpgradeService.php.
Elgg\UpgradeService::getUpgradeFileVersion |
( |
|
$filename | ) |
|
|
protected |
Returns the version of the upgrade filename.
- Parameters
-
string | $filename | The upgrade filename. No full path. |
- Returns
- int|false
- Since
- 1.8.0
Definition at line 205 of file UpgradeService.php.
Elgg\UpgradeService::processUpgrades |
( |
| ) |
|
|
protected |
Elgg\UpgradeService::run |
( |
| ) |
|
Run the upgrade process.
- Returns
- array $result Associative array containing possible errors
Definition at line 70 of file UpgradeService.php.
Elgg\UpgradeService::setProcessedUpgrade |
( |
|
$upgrade | ) |
|
|
protected |
Saves a processed upgrade to a dataset.
- Parameters
-
string | $upgrade | Filename of the processed upgrade (not the path, just the file) |
- Returns
- bool
Definition at line 180 of file UpgradeService.php.
Elgg\UpgradeService::upgradeCode |
( |
|
$version, |
|
|
|
$quiet = false |
|
) |
| |
|
protected |
Run any php upgrade scripts which are required.
- Parameters
-
int | $version | Version upgrading from. |
bool | $quiet | Suppress errors. Don't use this. |
- Returns
- bool
Definition at line 110 of file UpgradeService.php.
The documentation for this class was generated from the following file: