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