[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/ -> version.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: version.php 22952 2012-03-27 00:40:16Z dextercowley $
   4   * @package    Joomla.Framework
   5   * @copyright    Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
   6   * @license        GNU/GPL, see LICENSE.php
   7   * Joomla! is free software. This version may have been modified pursuant
   8   * to the GNU General Public License, and as distributed it includes or
   9   * is derivative of works licensed under the GNU General Public License or
  10   * other free or open source software licenses.
  11   * See COPYRIGHT.php for copyright notices and details.
  12   */
  13  defined('JPATH_BASE') or die();
  14  /**
  15   * Version information
  16   *
  17   * @package    Joomla.Framework
  18   * @since    1.0
  19   */
  20  class JVersion
  21  {
  22      /** @var string Product */
  23      var $PRODUCT     = 'Joomla!';
  24      /** @var int Main Release Level */
  25      var $RELEASE     = '1.5';
  26      /** @var string Development Status */
  27      var $DEV_STATUS = 'Stable';
  28      /** @var int Sub Release Level */
  29      var $DEV_LEVEL     = '26';
  30      /** @var int build Number */
  31      var $BUILD    = '';
  32      /** @var string Codename */
  33      var $CODENAME     = 'senu takaa ama busani';
  34      /** @var string Date */
  35      var $RELDATE     = '27-March-2012';
  36      /** @var string Time */
  37      var $RELTIME     = '18:00';
  38      /** @var string Timezone */
  39      var $RELTZ     = 'GMT';
  40      /** @var string Copyright Text */
  41      var $COPYRIGHT     = 'Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.';
  42      /** @var string URL */
  43      var $URL     = '<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the GNU General Public License.';
  44  
  45      /**
  46       *
  47       *
  48       * @return string Long format version
  49       */
  50  	function getLongVersion()
  51      {
  52          return $this->PRODUCT .' '. $this->RELEASE .'.'. $this->DEV_LEVEL .' '
  53              . $this->DEV_STATUS
  54              .' [ '.$this->CODENAME .' ] '. $this->RELDATE .' '
  55              . $this->RELTIME .' '. $this->RELTZ;
  56      }
  57  
  58      /**
  59       *
  60       *
  61       * @return string Short version format
  62       */
  63  	function getShortVersion() {
  64          return $this->RELEASE .'.'. $this->DEV_LEVEL;
  65      }
  66  
  67      /**
  68       *
  69       *
  70       * @return string Version suffix for help files
  71       */
  72  	function getHelpVersion()
  73      {
  74          if ($this->RELEASE > '1.0') {
  75              return '.' . str_replace( '.', '', $this->RELEASE );
  76          } else {
  77              return '';
  78          }
  79      }
  80  
  81      /**
  82       * Compares two "A PHP standardized" version number against the current Joomla! version
  83       *
  84       * @return boolean
  85       * @see http://www.php.net/version_compare
  86       */
  87  	function isCompatible ( $minimum ) {
  88          return (version_compare( JVERSION, $minimum, 'eq' ) == 1);
  89      }
  90  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1