Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Functions

  • Overview
  • Namespace
  • Function
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: if (!function_exists('dlog')) {
 9:     /**
10:      * Tracy\Debugger::log() shortcut.
11:      */
12:     function dlog($var = NULL)
13:     {
14:         if (func_num_args() === 0) {
15:             Tracy\Debugger::log(new Exception, 'dlog');
16:         }
17:         foreach (func_get_args() as $arg) {
18:             Tracy\Debugger::log($arg, 'dlog');
19:         }
20:         return $var;
21:     }
22: }
23: 
24: 
25: if (!function_exists('callback')) {
26:     /**
27:      * Nette\Callback factory.
28:      * @param  mixed   class, object, callable
29:      * @param  string  method
30:      * @return Nette\Callback
31:      */
32:     function callback($callback, $m = NULL)
33:     {
34:         return new Nette\Callback($callback, $m);
35:     }
36: }
37: 
38: 
39: /**
40:  * This file is part of the Tracy (https://tracy.nette.org)
41:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
42:  */
43: 
44: if (!function_exists('dump')) {
45:     /**
46:      * Tracy\Debugger::dump() shortcut.
47:      * @tracySkipLocation
48:      */
49:     function dump($var)
50:     {
51:         foreach (func_get_args() as $arg) {
52:             Tracy\Debugger::dump($arg);
53:         }
54:         return $var;
55:     }
56: }
57: 
Nette 2.2 API documentation generated by ApiGen 2.8.0