Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Functions

  • bdump
  • callback
  • dlog
  • dump
  • Overview
  • Namespace
  • Function
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: require __DIR__ . '/SafeStream/SafeStream.php';
 4: 
 5: Nette\Utils\SafeStream::register();
 6: 
 7: 
 8: /**
 9:  * This file is part of the Tracy (https://tracy.nette.org)
10:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
11:  */
12: 
13: if (!function_exists('dump')) {
14:     /**
15:      * Tracy\Debugger::dump() shortcut.
16:      * @tracySkipLocation
17:      */
18:     function dump($var)
19:     {
20:         array_map('Tracy\Debugger::dump', func_get_args());
21:         return $var;
22:     }
23: }
24: 
25: if (!function_exists('bdump')) {
26:     /**
27:      * Tracy\Debugger::barDump() shortcut.
28:      * @tracySkipLocation
29:      */
30:     function bdump($var)
31:     {
32:         call_user_func_array('Tracy\Debugger::barDump', func_get_args());
33:         return $var;
34:     }
35: }
36: 
37: 
38: /**
39:  * This file is part of the Nette Framework (https://nette.org)
40:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
41:  */
42: 
43: if (!function_exists('dlog')) {
44:     /**
45:      * Tracy\Debugger::log() shortcut.
46:      * @deprecated
47:      */
48:     function dlog($var = null)
49:     {
50:         trigger_error(__FUNCTION__ . '() is deprecated.', E_USER_DEPRECATED);
51:         if (func_num_args() === 0) {
52:             Tracy\Debugger::log(new Exception, 'dlog');
53:         }
54:         foreach (func_get_args() as $arg) {
55:             Tracy\Debugger::log($arg, 'dlog');
56:         }
57:         return $var;
58:     }
59: }
60: 
61: 
62: if (!function_exists('callback')) {
63:     /**
64:      * Nette\Callback factory.
65:      * @param  mixed   class, object, callable
66:      * @param  string  method
67:      * @return Nette\Callback
68:      * @deprecated
69:      */
70:     function callback($callback, $m = null)
71:     {
72:         trigger_error(__FUNCTION__ . '() is deprecated; use native PHP callback.', E_USER_DEPRECATED);
73:         return new Nette\Callback($callback, $m);
74:     }
75: }
76: 
Nette 2.4-20170829 API API documentation generated by ApiGen 2.8.0