Back to Joomla project (class list)

Class Version - list of methods

Version information class for the Joomla CMS.
Package: Joomla\CMS
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Version.php
Project: Joomla

Method Summary

public bool
()

Check if we are in development mode
Returns
  • bool
Since
  • 3.4.3
Show source code of this method: isInDevelopmentState Source Code

public bool
(string $minimum)

Compares two a "PHP standardized" version number against the current Joomla version.
Parameters
  • string $minimum The minimum version of the Joomla which is compatible.
Returns
  • bool True if the version is compatible.
Since
  • 1.0
-
  • https://www.php.net/version_compare
Show source code of this method: isCompatible Source Code

public string
()

Method to get the help file version.
Returns
  • string Version suffix for help files.
Since
  • 1.0
Show source code of this method: getHelpVersion Source Code

public string
()

Gets a "PHP standardized" version string for the current Joomla.
Returns
  • string Version string.
Since
  • 1.5
Show source code of this method: getShortVersion Source Code

public string
()

Gets a version string for the current Joomla with all release information.
Returns
  • string Complete version string.
Since
  • 1.5
Show source code of this method: getLongVersion Source Code

public string
(string $suffix = '', bool $mask = false, bool $addVersion = true)

Returns the user agent.
Parameters
  • string $suffix String to append to resulting user agent.
  • bool $mask Mask as Mozilla/5.0 or not.
  • bool $addVersion Add version afterwards to component.
Returns
  • string User Agent.
Since
  • 1.0
Show source code of this method: getUserAgent Source Code

public string
()

Generate a media version string for assets Public to allow third party developers to use it
Returns
  • string
Since
  • 3.2
Show source code of this method: generateMediaVersion Source Code

public string
()

Gets a media version which is used to append to Joomla core media files.
Returns
  • string The media version.
Since
  • 3.2
Show source code of this method: getMediaVersion Source Code

public \Joomla\CMS\Version
()

Function to refresh the media version
Returns
  • \Joomla\CMS\Version Instance of $this to allow chaining.
Since
  • 3.2
Show source code of this method: refreshMediaVersion Source Code

public \Joomla\CMS\Version
(string $mediaVersion)

Sets the media version which is used to append to Joomla core media files.
Parameters
  • string $mediaVersion The media version.
Returns
  • \Joomla\CMS\Version Instance of $this to allow chaining.
Since
  • 3.2
Show source code of this method: setMediaVersion Source Code

Constants Summary

public string
$PRODUCT
Product name.
Since
  • 3.5
public int
$MAJOR_VERSION
Major release version.
Since
  • 3.8.0
public int
$MINOR_VERSION
Minor release version.
Since
  • 3.8.0
public int
$PATCH_VERSION
Patch release version.
Since
  • 3.8.0
public string
$EXTRA_VERSION
Extra release version info.
Since
  • 3.8.0
public string
$DEV_STATUS
Development status.
Since
  • 3.5
public string
$CODENAME
Code name.
Since
  • 3.5
public string
$RELDATE
Release date.
Since
  • 3.5
public string
$RELTIME
Release time.
Since
  • 3.5
public string
$RELTZ
Release timezone.
Since
  • 3.5
public string
$COPYRIGHT
Copyright Notice.
Since
  • 3.5
public string
$URL
Link text.
Since
  • 3.5

Tags Summary

Since
1.0