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 clean up
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>
{{subst:SeeAlso:JVersion}}
</span>
{{SeeAlso:JVersion}}


===Examples===
===Examples===

Revision as of 14:37, 24 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' );


{{subst:SeeAlso:JVersion}}

Examples

<CodeExamplesForm />