$updater
$updater :
Updater instance.
Singleton core class which handles the main system for plugin. It includes registering of the autoload, all hooks (actions & filters) (see BaseCore class).
$rpmInitiator :\MatthiasWeb\RealMediaLibrary\RpmInitiator
See RpmInitiator.
getActivator(): \MatthiasWeb\Utils\Activator
Getter.
getAssets(): \MatthiasWeb\Utils\Assets
Getter
getService(): \MatthiasWeb\Utils\Service
Getter
versionCompareOlderThan(string|false $installed,string $version,array<mixed,string> $allowedPrerelease = array(),callable $prereleaseAdditionalCheck = null)
Checks if a previously installed version is lower than an expected version.
Additionally, we can check for a prerelease version, too. The $allowedPrerelease needs
to be an array (e.g. ["2.15.1", "2.16.0"]), and if the installed version is a prerelease
(e.g. 2.15.1-9507), the version 2.15.1 gets extracted and checked for existence in the array.
Usage with $prereleaseAdditionalCheck: You can pass an additional callback which is executed before
returning true when a prerelease got found. An example scenario for this callable is to check for
a specific database table if you drop a column. Why is this needed? Imagine you are sending multiple
prerelease to a customer.
| string|false | $installed | |
| string | $version | |
| array<mixed,string> | $allowedPrerelease | |
| callable | $prereleaseAdditionalCheck |
|
getInstance(): \MatthiasWeb\RealMediaLibrary\Core
Get singleton core class.