| Current Path : /var/www/html/libraries/Prism/ |
| Current File : /var/www/html/libraries/Prism/Version.php |
<?php
/**
* @package Prism
* @subpackage Version
* @author Todor Iliev
* @copyright Copyright (C) 2017 Todor Iliev <todor@itprism.com>. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
*/
namespace Prism;
defined('JPATH_PLATFORM') or die;
/**
* Prism Library version information
*
* @package Prism
* @subpackage Version
*/
class Version
{
/**
* Extension name
*
* @var string
*/
public $product = 'Prism Library';
/**
* Main Release Level
*
* @var integer
*/
public $release = '1';
/**
* Sub Release Level
*
* @var integer
*/
public $devLevel = '19.6';
/**
* Release Type
*
* @var integer
*/
public $releaseType = 'Lite';
/**
* Development Status
*
* @var string
*/
public $devStatus = 'Stable';
/**
* Date
*
* @var string
*/
public $releaseDate = '25 March, 2017';
/**
* License
*
* @var string
*/
public $license = '<a href="http://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank">GNU/GPLv3</a>';
/**
* Copyright Text
*
* @var string
*/
public $copyright = '© 2017 Prism. All rights reserved.';
/**
* URL
*
* @var string
*/
public $url = '<a href="http://itprism.com/free-joomla-extensions/others/software-development-kit" target="_blank">Prism Library</a>';
/**
* Developer
*
* @var string
*/
public $developer = '<a href="http://itprism.com" target="_blank">ITPrism</a>';
/**
* Build long format of the version text.
*
* @return string Long format version.
*/
public function getLongVersion()
{
return
$this->product . ' ' . $this->release . '.' . $this->devLevel . ' ' .
$this->devStatus . ' ' . $this->releaseDate;
}
/**
* Build medium format of the version text.
*
* @return string Medium format version.
*/
public function getMediumVersion()
{
return
$this->release . '.' . $this->devLevel . ' ' .
$this->releaseType . ' ( ' . $this->devStatus . ' )';
}
/**
* Build short format of the version text.
*
* @return string Short version format.
*/
public function getShortVersion()
{
return $this->release . '.' . $this->devLevel;
}
}