API16

JVersion: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JVersion}} ===Defined in=== lib...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
[[JVersion]] is a class that provides Version information about the currently installed Joomla application.
<nowiki>[</nowiki>[[Description:JVersion|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JVersion}}


===Defined in===
===Defined in===
Line 31: Line 28:
<source lang="php">jimport( 'joomla.version' );</source>
<source lang="php">jimport( 'joomla.version' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JVersion|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JVersion}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JVersion
  category=JVersion
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:16, 25 March 2017

JVersion is a class that provides Version information about the currently installed Joomla application.

Defined in

libraries/joomla/version.php

Methods

Method name Description
getLongVersion Method to get the long version information.
getShortVersion Method to get the short version information.
getHelpVersion Method to get the help file version.
isCompatible Compares two "A PHP standardized" version number against the current Joomla! version.
getUserAgent Returns the user agent.

Importing

jimport( 'joomla.version' );



Examples

Code Examples