Cnz
[ class tree: Cnz ] [ index: Cnz ] [ all elements ]

Source for file Version.php

Documentation is available at Version.php

  1. <?php
  2. /**
  3.  * CNZ Framework
  4.  *
  5.  * A Framework for Creating and Using Complex Web Elements
  6.  *
  7.  * The purpose of this framework is to provide a library of high-level objects
  8.  * to facilitate common HTML coding tasks, such as menus, tables, and forms.
  9.  * The intent is to reduce repetitive HTML coding as much as possible, replacing
  10.  * it with a combination of configuration files and style sheets with
  11.  * standardized naming conventions.
  12.  *
  13.  * This framework is built on and requires the
  14.  * {@link http://framework.zend.com/ Zend Framework}.
  15.  *
  16.  * @category Cnz
  17.  * @package  Cnz
  18.  *
  19.  * @author    Lyle Frost <lfrost@cnz.com>
  20.  * @copyright Copyright (c) 2006-2007 Citadel Network <{@link http://www.citadelnetwork.com/}>
  21.  * @filesource
  22.  * @license   http://www.citadelnetwork.com/license/cnzframework New BSD License
  23.  * @version   $Id: Version.php 27 2007-07-19 18:47:54Z lfrost $
  24.  */
  25.  
  26. /**
  27.  * Version class
  28.  *
  29.  * This class is used to determine the running version of CNZ Framework.
  30.  *
  31.  * @category Cnz
  32.  * @package  Cnz
  33.  */
  34. final class Cnz_Version
  35. {
  36.     /** Cnz Framework Version */
  37.     const VERSION    '0.9.7';
  38.  
  39.     /**
  40.      * @access private
  41.      */
  42.     private function __construct()
  43.     {
  44.     }
  45.  
  46.     /**
  47.      * Compare the specified Cnz Framework version <var>$version</var> with
  48.      * the current Cnz Framework version (<var>Cnz_Version::VERSION</var>).
  49.      *
  50.      * @param  string  $version  A version string.
  51.      * @return boolean -1 if the $version is older,
  52.      *                   0 if they are the same,
  53.      *                  +1 if $version is newer.
  54.      */
  55.     public static function compareVersion($version)
  56.     {
  57.         return version_compare($versionself::VERSION);
  58.     }
  59. }

Documentation generated on Thu, 19 Jul 2007 15:02:18 -0400 by phpDocumentor 1.4.0RC2