Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException

Functions

  • callback
  • dump
  • Overview
  • Namespace
  • Function
  • Tree
  • Other releases
 1: <?php
 2: 
 3: /**
 4:  * 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:  */
11: 
12: 
13: 
14: /**
15:  * Check and reset PHP configuration.
16:  */
17: error_reporting(E_ALL | E_STRICT);
18: @set_magic_quotes_runtime(FALSE); // @ - deprecated since PHP 5.3.0
19: iconv_set_encoding('internal_encoding', 'UTF-8');
20: extension_loaded('mbstring') && mb_internal_encoding('UTF-8');
21: @header('X-Powered-By: Nette Framework'); // @ - headers may be sent
22: 
23: 
24: 
25: /**
26:  * Load and configure Nette Framework
27:  */
28: define('NETTE', TRUE);
29: define('NETTE_DIR', __DIR__);
30: define('NETTE_VERSION_ID', 907); // v0.9.7
31: define('NETTE_PACKAGE', '5.3');
32: 
33: 
34: 
35: require_once __DIR__ . '/Utils/exceptions.php';
36: require_once __DIR__ . '/Utils/Framework.php';
37: require_once __DIR__ . '/Utils/Object.php';
38: require_once __DIR__ . '/Utils/ObjectMixin.php';
39: require_once __DIR__ . '/Utils/Callback.php';
40: require_once __DIR__ . '/Loaders/LimitedScope.php';
41: require_once __DIR__ . '/Loaders/AutoLoader.php';
42: require_once __DIR__ . '/Loaders/NetteLoader.php';
43: 
44: 
45: Nette\Loaders\NetteLoader::getInstance()->register();
46: 
47: 
48: 
49: /**
50:  * Nette\Callback factory.
51:  * @param  mixed   class, object, function, callback
52:  * @param  string  method
53:  * @return Nette\Callback
54:  */
55: function callback($callback, $m = NULL)
56: {
57:     return ($m === NULL && $callback instanceof Nette\Callback) ? $callback : new Nette\Callback($callback, $m);
58: }
59: 
60: 
61: 
62: /**
63:  * Nette\Debug::dump shortcut.
64:  */
65: function dump($var)
66: {
67:     foreach (func_get_args() as $arg) Nette\Debug::dump($arg);
68:     return $var;
69: }
70: 
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0