Version
final class Version
Version information class for the Joomla CMS.
Constants
Methods
Check if we are in development mode
Compares two a "PHP standardized" version number against the current Joomla version.
Method to get the help file version.
Gets a "PHP standardized" version string for the current Joomla.
Gets a version string for the current Joomla with all release information.
Returns the user agent.
Generate a media version string for assets Public to allow third party developers to use it
Gets a media version which is used to append to Joomla core media files.
Function to refresh the media version
Sets the media version which is used to append to Joomla core media files.
Details
bool
isCompatible(string $minimum)
Compares two a "PHP standardized" version number against the current Joomla version.
string
getShortVersion()
Gets a "PHP standardized" version string for the current Joomla.
string
getLongVersion()
Gets a version string for the current Joomla with all release information.
string
getUserAgent(string $suffix = '', bool $mask = false, bool $addVersion = true)
Returns the user agent.
string
generateMediaVersion()
Generate a media version string for assets Public to allow third party developers to use it
string
getMediaVersion()
Gets a media version which is used to append to Joomla core media files.
This media version is used to append to Joomla core media in order to trick browsers into reloading the CSS and JavaScript, because they think the files are renewed. The media version is renewed after Joomla core update, install, discover_install and uninstallation.
Version
setMediaVersion(string $mediaVersion)
Sets the media version which is used to append to Joomla core media files.