1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: * @package Nette
11: */
12:
13:
14:
15: /**
16: * The Nette Framework (https://nette.org)
17: *
18: * @author David Grudl
19: * @package Nette
20: */
21: final class NFramework
22: {
23:
24: /**#@+ Nette Framework version identification */
25: const NAME = 'Nette Framework';
26:
27: const VERSION = '0.9.7';
28:
29: const REVISION = 'f0ec895 released on 2012-01-20';
30: /**#@-*/
31:
32:
33:
34: /**
35: * Static class - cannot be instantiated.
36: */
37: final public function __construct()
38: {
39: throw new LogicException("Cannot instantiate static class " . get_class($this));
40: }
41:
42:
43:
44: /**
45: * Compares current Nette Framework version with given version.
46: * @param string
47: * @return int
48: */
49: public static function compareVersion($version)
50: {
51: return version_compare($version, self::VERSION);
52: }
53:
54:
55:
56: /**
57: * Nette Framework promotion.
58: * @return void
59: */
60: public static function promo($xhtml = TRUE)
61: {
62: echo '<a href="https://nette.org/" title="Nette Framework - The Most Innovative PHP Framework"><img ',
63: 'src="http://files.nette.org/icons/nette-powered.gif" alt="Powered by Nette Framework" width="80" height="15"',
64: ($xhtml ? ' />' : '>'), '</a>';
65: }
66:
67: }
68: