JVersion/isCompatible: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Compares two "A PHP standardized" version number against the current Joomla! version.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Descripti... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Compares two "A PHP standardized" version number against the current Joomla! version. | Compares two "A PHP standardized" version number against the current Joomla! version. | ||
===Syntax=== | ===Syntax=== | ||
| Line 37: | Line 35: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=isCompatible | category=isCompatible | ||
category=JVersion | category=JVersion | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:17, 25 March 2017
Description
Compares two "A PHP standardized" version number against the current Joomla! version.
Syntax
isCompatible($minimum)
| Parameter Name | Default Value | Description |
|---|---|---|
| $minimum |
Returns
boolean
Defined in
libraries/joomla/version.php
Importing
jimport( 'joomla.version' );
Source Body
public function isCompatible ($minimum) {
return (version_compare(JVERSION, $minimum, 'eq') == 1);
}
Examples
Code Examples