Update
class Update (View source)
Methods
Fetch from the remote marketplace the latest available versions of the core and the packages.
Retrieves the info about the latest available information.
Retrieves the info about the latest available information.
Looks in the designated updates location for all directories, ascertains what version they represent, and finds all versions greater than the currently installed version of concrete5.
Checks migrations to see if the current code DB version is greater than that registered in the database.
Upgrade the current core version to the latest locally available by running the applicable migrations.
Details
static string|null
getLatestAvailableVersionNumber()
Fetch from the remote marketplace the latest available versions of the core and the packages.
These operations are done only the first time or after at least APP_VERSION_LATEST_THRESHOLD seconds since the previous check.
static RemoteApplicationUpdate|null
getApplicationUpdateInformation()
Retrieves the info about the latest available information.
The effective request to the remote server is done just once per request.
static protected RemoteApplicationUpdate|null
getLatestAvailableUpdate()
Retrieves the info about the latest available information.
ApplicationUpdate[]
getLocalAvailableUpdates()
Looks in the designated updates location for all directories, ascertains what version they represent, and finds all versions greater than the currently installed version of concrete5.
static
isCurrentVersionNewerThanDatabaseVersion()
Checks migrations to see if the current code DB version is greater than that registered in the database.
static
updateToCurrentVersion(Configuration $configuration = null)
Upgrade the current core version to the latest locally available by running the applicable migrations.