/googlemini/code/trunk/administrator/components/com_artofgm/version.php
PHP | 94 lines | 26 code | 12 blank | 56 comment | 2 complexity | ef9d725b70137f5893b121f0104a96f8 MD5 | raw file
- <?php
- /**
- * @version $Id: version.php 518 2011-01-07 06:36:43Z eddieajau $
- * @copyright Copyright 2011 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License <http://www.fsf.org/licensing/licenses/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // No direct access.
- defined('_JEXEC') or die;
- /**
- * @package NewLifeInIT
- * @subpackage com_artofgm
- */
- class ArtofGMVersion
- {
- /**
- * Extension name string.
- *
- * @var string
- */
- const EXTENSION = 'com_artofgm';
- /**
- * Major.Minor version string.
- *
- * @var string
- */
- const VERSION = '1.0';
- /**
- * Maintenance version string.
- *
- * @var string
- */
- const SUBVERSION= '1';
- /**
- * Version status string.
- *
- * @var string
- */
- const STATUS = '';
- /**
- * Version release time stamp.
- *
- * @var string
- */
- const DATE = '2011-01-07 00:00:00';
- /**
- * Source control revision string.
- *
- * @var string
- */
- const REVISION = '$Revision: 518 $';
- /**
- * Method to get the build number from the source control revision string.
- *
- * @return integer The version build number.
- * @since 1.0
- */
- public static function getBuild()
- {
- return intval(substr(self::REVISION, 11));
- }
- /**
- * Gets the version number.
- *
- * @param boolean $build Optionally show the build number.
- * @param boolean $status Optionally show the status string.
- *
- * @return string
- * @since 1.0.3
- */
- public static function getVersion($build = false, $status = false)
- {
- $text = self::VERSION.'.'.self::SUBVERSION;
- if ($build) {
- $text .= ':'.self::getBuild();
- }
- if ($status) {
- $text .= ' '.self::STATUS;
- }
- return $text;
- }
- }