Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /joomla/version.php

Documentation is available at version.php

  1. <?php
  2. /**
  3.  * @version        $Id: version.php 6634 2007-02-15 18:27:18Z Jinx $
  4.  * @package    Joomla.Framework
  5.  * @copyright    Copyright (C) 2005 - 2007 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.  
  14. // Global version define
  15. if (!defined('JVERSION')) {
  16.     define('JVERSION''1.5.0');
  17. }
  18.  
  19. /**
  20.  * Version information
  21.  *
  22.  * @package    Joomla.Framework
  23.  * @since    1.0
  24.  */
  25. class JVersion
  26. {
  27.     /** @var string Product */
  28.     var $PRODUCT     = 'Joomla!';
  29.     /** @var int Main Release Level */
  30.     var $RELEASE     = '1.5';
  31.     /** @var string Development Status */
  32.     var $DEV_STATUS = 'Beta';
  33.     /** @var int Sub Release Level */
  34.     var $DEV_LEVEL     = '0';
  35.     /** @var int build Number */
  36.     var $BUILD         = '$Revision: $';
  37.     /** @var string Codename */
  38.     var $CODENAME     = 'Khepri';
  39.     /** @var string Date */
  40.     var $RELDATE     = '12-Oct-2006';
  41.     /** @var string Time */
  42.     var $RELTIME     = '00:00';
  43.     /** @var string Timezone */
  44.     var $RELTZ         = 'GMT';
  45.     /** @var string Copyright Text */
  46.     var $COPYRIGHT     = 'Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.';
  47.     /** @var string URL */
  48.     var $URL         = '<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the GNU/GPL License.';
  49.  
  50.     /**
  51.      *
  52.      *
  53.      * @return string Long format version
  54.      */
  55.     function getLongVersion()
  56.     {
  57.         return $this->PRODUCT .' '$this->RELEASE .'.'$this->DEV_LEVEL .' '
  58.             . $this->DEV_STATUS
  59.             .' [ '.$this->CODENAME .' ] '$this->RELDATE .' '
  60.             . $this->RELTIME .' '$this->RELTZ;
  61.     }
  62.  
  63.     /**
  64.      *
  65.      *
  66.      * @return string Short version format
  67.      */
  68.     function getShortVersion({
  69.         return $this->RELEASE .'.'$this->DEV_LEVEL;
  70.     }
  71.  
  72.     /**
  73.      *
  74.      *
  75.      * @return string Version suffix for help files
  76.      */
  77.     function getHelpVersion(
  78.     {
  79.         if ($this->RELEASE > '1.0'{
  80.             return '.' str_replace'.'''$this->RELEASE );
  81.         else {
  82.             return '';
  83.         }
  84.     }
  85.  
  86.     /**
  87.      * Compares two "A PHP standardized" version number against the current Joomla! version
  88.      *
  89.      * @return boolean 
  90.      * @see http://www.php.net/version_compare
  91.      */
  92.     function isCompatible $minimum {
  93.         return (version_compareJVERSION$minimum'eq' == 1);
  94.     }
  95. }
  96. ?>

Documentation generated on Mon, 05 Mar 2007 21:31:13 +0000 by phpDocumentor 1.3.1