1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004, 2011 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 (http://nette.org)
17: *
18: * @author David Grudl
19: */
20: final class NFramework
21: {
22:
23: /** Nette Framework version identification */
24: const NAME = 'Nette Framework',
25: VERSION = '2.0-dev',
26: REVISION = '539fdec released on 2011-04-13';
27:
28: /** @var bool set to TRUE if your host has disabled function ini_set */
29: public static $iAmUsingBadHost = FALSE;
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: class NClosureFix
44: {
45: static $vars = array();
46:
47: static function uses($args)
48: {
49: self::$vars[] = $args;
50: return count(self::$vars)-1;
51: }
52: }