Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe Version

Fonctions membres publiques

 __get ($name)
 
 isInDevelopmentState ()
 
 isCompatible ($minimum)
 
 getHelpVersion ()
 
 getShortVersion ()
 
 getLongVersion ()
 
 getUserAgent ($component=null, $mask=false, $add_version=true)
 
 generateMediaVersion ()
 
 getMediaVersion ()
 
 refreshMediaVersion ()
 
 setMediaVersion ($mediaVersion)
 

Champs de données

const PRODUCT = 'Joomla!'
 
const MAJOR_VERSION = 3
 
const MINOR_VERSION = 8
 
const PATCH_VERSION = 5
 
const EXTRA_VERSION = ''
 
const RELEASE = '3.8'
 
const DEV_LEVEL = '5'
 
const DEV_STATUS = 'Stable'
 
const BUILD = ''
 
const CODENAME = 'Amani'
 
const RELDATE = '6-February-2018'
 
const RELTIME = '15:00'
 
const RELTZ = 'GMT'
 
const COPYRIGHT = 'Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.'
 
const URL = '<a href="https://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.'
 

Description détaillée

Version information class for the Joomla CMS.

Depuis
1.0

Documentation des fonctions membres

◆ __get()

__get (   $name)

Magic getter providing access to constants previously defined as class member vars.

Paramètres
string$nameThe name of the property.
Renvoie
mixed A value if the property name is valid.
Depuis
3.5
Obsolète:
4.0 Access the constants directly

Références $name.

◆ 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 $date.

◆ 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 $params, LibraryHelper\getParams(), JDEBUG, 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 (   $component = null,
  $mask = false,
  $add_version = true 
)

Returns the user agent.

Paramètres
string$componentName of the component.
bool$maskMask as Mozilla/5.0 or not.
bool$add_versionAdd version afterwards to component.
Renvoie
string User Agent.
Depuis
1.0

Références $component, et null.

◆ isCompatible()

isCompatible (   $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 (   $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 $params, LibraryHelper\getParams(), et LibraryHelper\saveParams().

Documentation des champs

◆ BUILD

const BUILD = ''

◆ CODENAME

const CODENAME = 'Amani'

◆ COPYRIGHT

const COPYRIGHT = 'Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.'

◆ DEV_LEVEL

const DEV_LEVEL = '5'

◆ DEV_STATUS

const DEV_STATUS = 'Stable'

◆ EXTRA_VERSION

const EXTRA_VERSION = ''

◆ MAJOR_VERSION

const MAJOR_VERSION = 3

◆ MINOR_VERSION

const MINOR_VERSION = 8

◆ PATCH_VERSION

const PATCH_VERSION = 5

◆ PRODUCT

const PRODUCT = 'Joomla!'

◆ RELDATE

const RELDATE = '6-February-2018'

◆ RELEASE

const RELEASE = '3.8'

◆ RELTIME

const RELTIME = '15:00'

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