JVersion/getHelpVersion: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method to get the help file version.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowi... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Method to get the help file version. | Method to get the help file version. | ||
===Syntax=== | ===Syntax=== | ||
| Line 32: | Line 30: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getHelpVersion | category=getHelpVersion | ||
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
Method to get the help file version.
Syntax
getHelpVersion()
Returns
string Version suffix for help files.
Defined in
libraries/joomla/version.php
Importing
jimport( 'joomla.version' );
Source Body
public function getHelpVersion()
{
if ($this->RELEASE > '1.0') {
return '.' . str_replace('.', '', $this->RELEASE);
} else {
return '';
}
}
Examples
Code Examples