[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/ -> Version.php (summary)

Joomla! Content Management System

Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 322 lines (8 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 11 functions

  isInDevelopmentState()
  isCompatible()
  getHelpVersion()
  getShortVersion()
  getLongVersion()
  getUserAgent()
  generateMediaVersion()
  getMediaVersion()
  refreshMediaVersion()
  setMediaVersion()
  getMediaVersionCache()

Functions
Functions that are not part of a class:

isInDevelopmentState()   X-Ref
Check if we are in development mode

return: boolean

isCompatible(string $minimum)   X-Ref
Compares two a "PHP standardized" version number against the current Joomla version.

param: string  $minimum  The minimum version of the Joomla which is compatible.
return: boolean True if the version is compatible.

getHelpVersion()   X-Ref
Method to get the help file version.

return: string  Version suffix for help files.

getShortVersion()   X-Ref
Gets a "PHP standardized" version string for the current Joomla.

return: string  Version string.

getLongVersion()   X-Ref
Gets a version string for the current Joomla with all release information.

return: string  Complete version string.

getUserAgent(string $suffix = '', bool $mask = false, bool $addVersion = true)   X-Ref
Returns the user agent.

param: string  $suffix      String to append to resulting user agent.
param: bool    $mask        Mask as Mozilla/5.0 or not.
param: bool    $addVersion  Add version afterwards to component.
return: string  User Agent.

generateMediaVersion()   X-Ref
Generate a media version string for assets
Public to allow third party developers to use it

return: string

getMediaVersion()   X-Ref
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.

return: string  The media version.

refreshMediaVersion()   X-Ref
Function to refresh the media version

return: Version  Instance of $this to allow chaining.

setMediaVersion(string $mediaVersion)   X-Ref
Sets the media version which is used to append to Joomla core media files.

param: string  $mediaVersion  The media version.
return: Version  Instance of $this to allow chaining.

getMediaVersionCache()   X-Ref
Get cache instance for MediaVersion caching.

return: CacheController



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer