/Nette/Framework.php
PHP | 79 lines | 22 code | 19 blank | 38 comment | 0 complexity | b3630b08a465332f44deb4d1ce60390a MD5 | raw file
Possible License(s): BSD-3-Clause
- <?php
- /**
- * Nette Framework
- *
- * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- *
- * This source file is subject to the "Nette license" that is bundled
- * with this package in the file license.txt.
- *
- * For more information please see http://nettephp.com
- *
- * @copyright Copyright (c) 2004, 2009 David Grudl
- * @license http://nettephp.com/license Nette license
- * @link http://nettephp.com
- * @category Nette
- * @package Nette
- */
- /*namespace Nette;*/
- /**
- * The Nette Framework.
- *
- * @author David Grudl
- * @copyright Copyright (c) 2004, 2009 David Grudl
- * @package Nette
- */
- final class Framework
- {
- /**#@+ Nette Framework version identification */
- const NAME = 'Nette Framework';
- const VERSION = '0.9.2-dev';
- const REVISION = '$WCREV$ released on $WCDATE$';
- const PACKAGE = '';
- /**#@-*/
- /**
- * Static class - cannot be instantiated.
- */
- final public function __construct()
- {
- throw new /*\*/LogicException("Cannot instantiate static class " . get_class($this));
- }
- /**
- * Compares current Nette Framework version with given version.
- * @param string
- * @return int
- */
- public static function compareVersion($version)
- {
- return version_compare($version, self::VERSION);
- }
- /**
- * Nette Framework promotion.
- * @return void
- */
- public static function promo($xhtml = TRUE)
- {
- echo '<a href="http://nettephp.com/" title="Nette Framework - The Most Innovative PHP Framework"><img ',
- 'src="http://nettephp.com/images/nette-powered.gif" alt="Powered by Nette Framework" width="80" height="15"',
- ($xhtml ? ' />' : '>'), '</a>';
- }
- }