| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Platform 4 * 5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE 7 */ 8 9 defined('JPATH_PLATFORM') or die; 10 11 /** 12 * Version information class for the Joomla Platform. 13 * 14 * @package Joomla.Platform 15 * @since 11.1 16 */ 17 final class JPlatform 18 { 19 // Product name. 20 const PRODUCT = 'Joomla Platform'; 21 // Release version. 22 const RELEASE = '11.4'; 23 // Maintenance version. 24 const MAINTENANCE = '0'; 25 // Development STATUS. 26 const STATUS = 'Stable'; 27 // Build number. 28 const BUILD = 0; 29 // Code name. 30 const CODE_NAME = 'Brian Kernighan'; 31 // Release date. 32 const RELEASE_DATE = '03-Jan-2012'; 33 // Release time. 34 const RELEASE_TIME = '00:00'; 35 // Release timezone. 36 const RELEASE_TIME_ZONE = 'GMT'; 37 // Copyright Notice. 38 const COPYRIGHT = 'Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.'; 39 // Link text. 40 const LINK_TEXT = '<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.'; 41 42 /** 43 * Compares two a "PHP standardized" version number against the current Joomla Platform version. 44 * 45 * @param string $minimum The minimum version of the Joomla Platform which is compatible. 46 * 47 * @return boolean True if the version is compatible. 48 * 49 * @see http://www.php.net/version_compare 50 * @since 11.1 51 */ 52 public static function isCompatible($minimum) 53 { 54 return (version_compare(self::getShortVersion(), $minimum, 'eq') == 1); 55 } 56 57 /** 58 * Gets a "PHP standardized" version string for the current Joomla Platform. 59 * 60 * @return string Version string. 61 * 62 * @since 11.1 63 */ 64 public static function getShortVersion() 65 { 66 return self::RELEASE . '.' . self::MAINTENANCE; 67 } 68 69 /** 70 * Gets a version string for the current Joomla Platform with all release information. 71 * 72 * @return string Complete version string. 73 * 74 * @since 11.1 75 */ 76 public static function getLongVersion() 77 { 78 return self::PRODUCT . ' ' . self::RELEASE . '.' . self::MAINTENANCE . ' ' . self::STATUS . ' [ ' . self::CODE_NAME . ' ] ' 79 . self::RELEASE_DATE . ' ' . self::RELEASE_TIME . ' ' . self::RELEASE_TIME_ZONE; 80 } 81 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |