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

Classes

  • Callback
  • Configurator
  • Environment
  • Framework
  • FreezableObject
  • Object

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Callback

Nette\Object
Extended by Nette\Callback
Namespace: Nette
Deprecated
Located at deprecated/Callback.php
Methods summary
public static Nette\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

Nette\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 Nette\Reflection\GlobalFunction|Nette\Reflection\Method
# toReflection( )

Returns callback reflection.

Returns callback reflection.

Returns

Nette\Reflection\GlobalFunction|Nette\Reflection\Method
public boolean
# isStatic( )

Returns

boolean
public Nette\Callback
# bindTo( $newthis )

Duplicates the callback with a new bound object.

Duplicates the callback with a new bound object.

Returns

Nette\Callback
public string
# __toString( )

Returns

string
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0