Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Callback

PHP callback encapsulation.

Object
Extended by Callback
Package: Nette
Author: David Grudl
Located at common/Callback.php
Methods summary
public static Callback
# create( mixed $callback, string $m = NULL )

Factory. Workaround for missing (new Callback)->invoke() in PHP 5.3.

Factory. Workaround for missing (new Callback)->invoke() in PHP 5.3.

Parameters

$callback
mixed
class, object, callable
$m
string
method

Returns

Callback
public
# __construct( mixed $cb, string $m = NULL )

Parameters

$cb
mixed
class, object, callable
$m
string
method
public mixed
# __invoke( )

Invokes callback. Do not call directly.

Invokes callback. Do not call directly.

Returns

mixed
public mixed
# invoke( )

Invokes callback.

Invokes callback.

Returns

mixed
public mixed
# invokeArgs( array $args )

Invokes callback with an array of parameters.

Invokes callback with an array of parameters.

Parameters

$args
array

Returns

mixed
public boolean
# isCallable( )

Verifies that callback can be called.

Verifies that callback can be called.

Returns

boolean
public string|array|Closure
# getNative( )

Returns PHP callback pseudotype.

Returns PHP callback pseudotype.

Returns

string|array|Closure
public FunctionReflection|MethodReflection
# toReflection( )

Returns callback reflection.

Returns callback reflection.

Returns

FunctionReflection|MethodReflection
public boolean
# isStatic( )

Returns

boolean
public string
# __toString( )

Returns

string
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public read-only boolean $callable
#
public read-only string|array|Closure $native
#
public read-only boolean $static
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0