Version information class for the Joomla CMS.
- Depuis
- 1.0
◆ generateMediaVersion()
Generate a media version string for assets Public to allow third party developers to use it
- Renvoie
- string
- Depuis
- 3.2
Références Factory\getApplication().
◆ getHelpVersion()
Method to get the help file version.
- Renvoie
- string Version suffix for help files.
- Depuis
- 1.0
◆ getLongVersion()
Gets a version string for the current Joomla with all release information.
- Renvoie
- string Complete version string.
- Depuis
- 1.5
◆ 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.
- Renvoie
- string The media version.
- Depuis
- 3.2
Références $mediaVersion, $this, et null.
◆ getShortVersion()
Gets a "PHP standardized" version string for the current Joomla.
- Renvoie
- string Version string.
- Depuis
- 1.5
Références $version.
◆ getUserAgent()
getUserAgent |
( |
string |
$suffix = '' , |
|
|
bool |
$mask = false , |
|
|
bool |
$addVersion = true |
|
) |
| |
Returns the user agent.
- Paramètres
-
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. |
- Renvoie
- string User Agent.
- Depuis
- 1.0
Références $suffix.
◆ isCompatible()
isCompatible |
( |
string |
$minimum | ) |
|
Compares two a "PHP standardized" version number against the current Joomla version.
- Paramètres
-
string | $minimum | The minimum version of the Joomla which is compatible. |
- Renvoie
- boolean True if the version is compatible.
1.0
◆ isInDevelopmentState()
Check if we are in development mode
- Renvoie
- boolean
- Depuis
- 3.4.3
◆ refreshMediaVersion()
Function to refresh the media version
- Renvoie
- Version Instance of $this to allow chaining.
- Depuis
- 3.2
◆ setMediaVersion()
setMediaVersion |
( |
string |
$mediaVersion | ) |
|
Sets the media version which is used to append to Joomla core media files.
- Paramètres
-
string | $mediaVersion | The media version. |
- Renvoie
- Version Instance of $this to allow chaining.
- Depuis
- 3.2
Références $mediaVersion, et $this.
◆ $mediaVersion
◆ CODENAME
const CODENAME = 'Uaminifu' |
◆ COPYRIGHT
const COPYRIGHT = '(C) 2005 Open Source Matters, Inc. <https://www.joomla.org>' |
◆ DEV_STATUS
const DEV_STATUS = 'Stable' |
◆ EXTRA_VERSION
◆ MAJOR_VERSION
◆ MINOR_VERSION
◆ PATCH_VERSION
◆ PRODUCT
const PRODUCT = 'Joomla!' |
◆ RELDATE
const RELDATE = '2-September-2022' |
◆ RELTIME
◆ RELTZ
◆ URL
const URL = '<a href="https://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.' |
La documentation de cette classe a été générée à partir du fichier suivant :