Version
class Version
Version information class for the Joomla CMS.
Constants
Methods
Magic getter providing access to constants previously defined as class member vars.
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
mixed
__get(
string $name)
Magic getter providing access to constants previously defined as class member vars.
boolean
isCompatible(
string $minimum)
Compares two a "PHP standardized" version number against the current Joomla version.
string
getUserAgent(
string $component = null,
bool $mask = false,
bool $add_version = 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.