- md5
- 2a59dfb572350f15b6017c841d80cfc9
- sha1
- cbbc57429a173cacecf0eb123692cb5473ad79be
- sha256
- 2f109baa49187fe5454d99d12c19256392f3503a3a131596845de8487cd5df25
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_version
*
* @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Module\Version\Administrator\Helper;
use Joomla\CMS\Version;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Helper for mod_version
*
* @since 1.6
*/
class VersionHelper
{
/**
* Get the Joomla version number.
*
* @return string String containing the current Joomla version.
*
* @since 5.1.0
*/
public function getVersionString()
{
$version = new Version();
return '‎' . $version->getShortVersion();
}
/**
* Get the Joomla version number.
*
* @return string String containing the current Joomla version.
*
* @deprecated 5.1.0 will be removed in 7.0
* Use the non-static method getVersionString
* Example: Factory::getApplication()->bootModule('mod_version', 'administrator')
* ->getHelper('VersionHelper')
* ->getVersionString()
*/
public static function getVersion()
{
return (new self())->getVersionString();
}
}
The same content is in 133 releases, Joomla 5.1.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.