Your IP : 216.73.216.240
<?php
/*
* @package Tech Fry Library
* @license https://www.gnu.org/licenses/gpl-3.0.en.html
*/
namespace TechFry\Library;
defined('_JEXEC') or die;
class TVersion
{
public $jversion;
public $major;
public $minor;
public $patch;
public function __construct()
{
$this->jversion = JVERSION;
$parts = explode('.', $this->jversion);
$this->major = $parts[0];
$this->minor = $parts[1];
$this->patch = $parts[2];
if (strpos($this->patch, '-') !== false)
{
$this->patch = explode('-', $this->patch)[0];
}
}
public function get_jversion()
{
return $this->jversion;
}
public function get_major()
{
return $this->major;
}
public function get_minor()
{
return $this->minor;
}
public function get_patch()
{
return $this->patch;
}
}