~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Version.php

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Zend Framework
 
4
 *
 
5
 * LICENSE
 
6
 *
 
7
 * This source file is subject to the new BSD license that is bundled
 
8
 * with this package in the file LICENSE.txt.
 
9
 * It is also available through the world-wide-web at this URL:
 
10
 * http://framework.zend.com/license/new-bsd
 
11
 * If you did not receive a copy of the license and are unable to
 
12
 * obtain it through the world-wide-web, please send an email
 
13
 * to license@zend.com so we can send you a copy immediately.
 
14
 *
 
15
 * @category   Zend
 
16
 * @package    Zend_Version
 
17
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
19
 * @version    $Id: Version.php 12930 2008-11-28 11:31:25Z alexander $
 
20
 */
 
21
 
 
22
/**
 
23
 * Class to store and retrieve the version of Zend Framework.
 
24
 *
 
25
 * @category   Zend
 
26
 * @package    Zend_Version
 
27
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
28
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
29
 */
 
30
final class Zend_Version
 
31
{
 
32
    /**
 
33
     * Zend Framework version identification - see compareVersion()
 
34
     */
 
35
    const VERSION = '1.7.1';
 
36
 
 
37
    /**
 
38
     * Compare the specified Zend Framework version string $version
 
39
     * with the current Zend_Version::VERSION of the Zend Framework.
 
40
     *
 
41
     * @param  string  $version  A version string (e.g. "0.7.1").
 
42
     * @return boolean           -1 if the $version is older,
 
43
     *                           0 if they are the same,
 
44
     *                           and +1 if $version is newer.
 
45
     *
 
46
     */
 
47
    public static function compareVersion($version)
 
48
    {
 
49
        return version_compare($version, self::VERSION);
 
50
    }
 
51
}