1: <?php
2:
3: /**
4: * This file is part of the Nette Framework.
5: *
6: * Copyright (c) 2004, 2010 David Grudl (http://davidgrudl.com)
7: *
8: * This source file is subject to the "Nette license", and/or
9: * GPL license. For more information please see http://nette.org
10: * @package Nette
11: */
12:
13:
14:
15: /**
16: * The Nette Framework.
17: *
18: * @author David Grudl
19: */
20: final class Framework
21: {
22:
23: /**#@+ Nette Framework version identification */
24: const NAME = 'Nette Framework';
25:
26: const VERSION = '2.0-dev';
27:
28: const REVISION = 'dd45b44 released on 2010-10-13';
29: /**#@-*/
30:
31:
32:
33: /**
34: * Static class - cannot be instantiated.
35: */
36: final public function __construct()
37: {
38: throw new LogicException("Cannot instantiate static class " . get_class($this));
39: }
40:
41:
42:
43: /**
44: * Nette Framework promotion.
45: * @return void
46: */
47: public static function promo()
48: {
49: echo '<a href="http://nette.org" title="Nette Framework - The Most Innovative PHP Framework"><img ',
50: 'src="http://files.nette.org/icons/nette-powered.gif" alt="Powered by Nette Framework" width="80" height="15" /></a>';
51: }
52:
53: }
54:
55: class NClosureFix
56: {
57: static $vars = array();
58:
59: static function uses($args)
60: {
61: self::$vars[] = $args;
62: return count(self::$vars)-1;
63: }
64: }
65: