| Methods |
public
static
|
init($f3)
|
#
|
public
|
beforeroute()
|
#
|
public
|
info()
Displays the upgrade info page.
Displays the upgrade info page.
|
#
|
public
|
select()
Detects the current installed version of SimpleID, selects the individual upgrade
functions applicable to this upgrade and displays the upgrade
selection page.
Detects the current installed version of SimpleID, selects the individual upgrade
functions applicable to this upgrade and displays the upgrade
selection page.
|
#
|
public
|
apply()
|
#
|
public
|
applyStep()
Applies a single step of the upgrade.
Applies a single step of the upgrade.
|
#
|
public
|
complete()
|
#
|
protected
|
accessDenied()
Displays a page notifying the user that he or she does not have permission to
run the upgrade script.
Displays a page notifying the user that he or she does not have permission to
run the upgrade script.
|
#
|
protected
|
getVersion(): string
Detects the current installed version of SimpleID
Detects the current installed version of SimpleID
The current installed version of SimpleID is taken from the version
application setting.
Returns
|
#
|
public
|
setVersion(string $version = null)
Sets the current version of SimpleID.
Sets the current version of SimpleID.
This function sets the version application setting via \SimpleID\Store\StoreManager::setSetting() .
A specific version can be specified, or it can be taken from SIMPLEID_VERSION
.
Parameters
| $version |
the version to set
|
|
#
|
protected
|
getUpgradeList(string $version = null): array
Selects the upgrade functions applicable for this upgrade.
Selects the upgrade functions applicable for this upgrade.
The upgrade functions are specified by the upgradeList
hook. This variable is an associative array containing version numbers
as keys and an array of upgrade function names as values. This function
merges all the upgrade function names of the version between the current
installed version and the upgraded version.
Parameters
| $version |
the version of SimpleID to upgrade from, calls
getVersion() if not specified
|
Returns
an array of strings, containing the list of upgrade functions
to call. The functions should be called in the same order as they appear
in this array
|
#
|
public
|
onUpgradeList(BaseDataCollectionEvent $event)
|
#
|