Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Version

Fonctions membres publiques

 isInDevelopmentState ()
 
 isCompatible (string $minimum)
 
 getHelpVersion ()
 
 getShortVersion ()
 
 getLongVersion ()
 
 getUserAgent (string $suffix='', bool $mask=false, bool $addVersion=true)
 
 generateMediaVersion ()
 
 getMediaVersion ()
 
 refreshMediaVersion ()
 
 setMediaVersion (string $mediaVersion)
 

Champs de données

const PRODUCT = 'Joomla!'
 
const MAJOR_VERSION = 4
 
const MINOR_VERSION = 2
 
const PATCH_VERSION = 2
 
const EXTRA_VERSION = ''
 
const DEV_STATUS = 'Stable'
 
const CODENAME = 'Uaminifu'
 
const RELDATE = '2-September-2022'
 
const RELTIME = '20:41'
 
const RELTZ = 'GMT'
 
const COPYRIGHT = '(C) 2005 Open Source Matters, Inc. <https://www.joomla.org>'
 
const URL = '<a href="https://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.'
 

Attributs privés statiques

static $mediaVersion = null
 

Description détaillée

Version information class for the Joomla CMS.

Depuis
1.0

Documentation des fonctions membres

◆ generateMediaVersion()

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()

getHelpVersion ( )

Method to get the help file version.

Renvoie
string Version suffix for help files.
Depuis
1.0

◆ getLongVersion()

getLongVersion ( )

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

Renvoie
string Complete version string.
Depuis
1.5

◆ getMediaVersion()

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()

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$suffixString to append to resulting user agent.
bool$maskMask as Mozilla/5.0 or not.
bool$addVersionAdd 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$minimumThe minimum version of the Joomla which is compatible.
Renvoie
boolean True if the version is compatible.

1.0

◆ isInDevelopmentState()

isInDevelopmentState ( )

Check if we are in development mode

Renvoie
boolean
Depuis
3.4.3

◆ refreshMediaVersion()

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$mediaVersionThe media version.
Renvoie
Version Instance of $this to allow chaining.
Depuis
3.2

Références $mediaVersion, et $this.

Documentation des champs

◆ $mediaVersion

$mediaVersion = null
staticprivate

◆ 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

const EXTRA_VERSION = ''

◆ MAJOR_VERSION

◆ MINOR_VERSION

const MINOR_VERSION = 2

◆ PATCH_VERSION

const PATCH_VERSION = 2

◆ PRODUCT

const PRODUCT = 'Joomla!'

◆ RELDATE

const RELDATE = '2-September-2022'

◆ RELTIME

const RELTIME = '20:41'

◆ RELTZ

const RELTZ = 'GMT'

◆ 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 :