Version

Version information class for the Joomla CMS.

final
since

1.0

package

Joomla CMS

Methods

generateMediaVersion

Generate a media version string for assets Public to allow third party developers to use it

generateMediaVersion() : 
since

3.2

Response

string

getHelpVersion

Method to get the help file version.

getHelpVersion() : 
since

1.0

Response

stringVersion suffix for help files.

getLongVersion

Gets a version string for the current Joomla with all release information.

getLongVersion() : 
since

1.5

Response

stringComplete version string.

getMediaVersion

Gets a media version which is used to append to Joomla core media files.

getMediaVersion() : 

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.

since

3.2

Response

stringThe media version.

getMediaVersionCache

Get cache instance for MediaVersion caching.

getMediaVersionCache() : \Joomla\CMS\Cache\CacheController
since

4.2.0

Response

CacheController

getShortVersion

Gets a "PHP standardized" version string for the current Joomla.

getShortVersion() : 
since

1.5

Response

stringVersion string.

getUserAgent

Returns the user agent.

getUserAgent( suffix = '',  mask = false,  addVersion = true) : 
since

1.0

Arguments

suffix

stringString to append to resulting user agent.

mask

boolMask as Mozilla/5.0 or not.

addVersion

boolAdd version afterwards to component.

Response

stringUser Agent.

isCompatible

Compares two a "PHP standardized" version number against the current Joomla version.

isCompatible( minimum) : 
link
since

1.0

Arguments

minimum

stringThe minimum version of the Joomla which is compatible.

Response

boolTrue if the version is compatible.

isInDevelopmentState

Check if we are in development mode

isInDevelopmentState() : 
since

3.4.3

Response

bool

refreshMediaVersion

Function to refresh the media version

refreshMediaVersion() : \Joomla\CMS\Version
since

3.2

Response

VersionInstance of $this to allow chaining.

setMediaVersion

Sets the media version which is used to append to Joomla core media files.

setMediaVersion( mediaVersion) : \Joomla\CMS\Version
since

3.2

Arguments

mediaVersion

stringThe media version.

Response

VersionInstance of $this to allow chaining.

Constants

PRODUCT

Product name.

Value 'Joomla!'
since

3.5

Type(s)

string

MAJOR_VERSION

Major release version.

Value 4
since

3.8.0

Type(s)

int

MINOR_VERSION

Minor release version.

Value 4
since

3.8.0

Type(s)

int

PATCH_VERSION

Patch release version.

Value 2
since

3.8.0

Type(s)

int

EXTRA_VERSION

Extra release version info.

This constant when not empty adds an additional identifier to the version string to reflect the development state. For example, for 3.8.0 when this is set to 'dev' the version string will be 3.8.0-dev.

Value ''
since

3.8.0

Type(s)

string

DEV_STATUS

Development status.

Value 'Stable'
since

3.5

Type(s)

string

CODENAME

Code name.

Value 'Pamoja'
since

3.5

Type(s)

string

RELDATE

Release date.

Value '9-January-2024'
since

3.5

Type(s)

string

RELTIME

Release time.

Value '16:00'
since

3.5

Type(s)

string

RELTZ

Release timezone.

Value 'GMT'
since

3.5

Type(s)

string

URL

Link text.

Value '<a href="https://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.'
since

3.5

Type(s)

string

Properties

mediaVersion

Media version string

static
since

4.2.0

Type(s)

string