<?php
/**
 * Goweb Sitemanager 5 Framework
 *
 * @category   Goweb
 * @package    Goweb_Version
 * @author     I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright  2010 (c) Goweb (http://www.goweb.pt)
 */


/**
 * Class to store and retrieve the version of Goweb Framework.
 * 
 * @category   Goweb
 * @package    Goweb_Version
 * @author     I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright  2010 (c) Goweb (http://www.goweb.pt)
 */

final class Goweb_Version{
    /**
     * Goweb Framework version identification - see compareVersion()
     */
    const VERSION = '5.1.10';
    
    /**
     * Password de admin goweb
     *
     */
    const PASSWORD = 'c6cc19178778a678a08b67a40d6d8867323e66b2';

    /**
     * Compare the specified Goweb Framework version string $version
     * with the current Goweb_Version::VERSION of the Goweb Framework.
     *
     * @param  string  $version  A version string (e.g. "0.7.1").
     * @return boolean           -1 if the $version is older,
     *                           0 if they are the same,
     *                           and +1 if $version is newer.
     *
     */
    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}
