the-art-of-joomla-archive /content/code/trunk/administrator/components/com_artofcontent/version.php

Language PHP Lines 97
MD5 Hash ce3bcaf7bb75f570f651ad3aa23775c9 Estimated Cost $538 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
/**
 * @version		$Id: version.php 484 2010-12-20 23:40:27Z eddieajau $
 * @package		NewLifeInIT
 * @subpackage	com_artofcontent
 * @copyright	Copyright 2005 - 2010 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_artofcontent
 * @since		1.0
 */
class ArtofContentVersion
{
	/**
	 * Extension name string.
	 *
	 * @var		string
	 */
	const EXTENSION	= 'com_artofcontent';

	/**
	 * Major.Minor version string.
	 *
	 * @var		string
	 */
	const VERSION	= '1.0';

	/**
	 * Maintenance version string.
	 *
	 * @var		string
	 */
	const SUBVERSION	= '0';

	/**
	 * Version status string.
	 *
	 * @var		string
	 */
	const STATUS		= '';

	/**
	 * Version release time stamp.
	 *
	 * @var		string
	 */
	const DATE		= '2010-12-20 00:00:00';

	/**
	 * Source control revision string.
	 *
	 * @var		string
	 */
	const REVISION	= '$Revision: 484 $';

	/**
	 * 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;
	}
}
Back to Top