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
  • PHP

Classes

  • NArrayHash
  • NArrayList
  • NCallback
  • NDateTime53
  • NEnvironment
  • NFramework
  • NFreezableObject
  • NImage
  • NObject
  • NObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • NStaticClassException
  • NUnknownImageFileException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class NCallback

PHP callback encapsulation.

NObject
Extended by NCallback
Final
Package: Nette
Author: David Grudl
Located at common/Callback.php
Methods summary
public static NCallback
# 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

NCallback
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 NFunctionReflection|NMethodReflection
# toReflection( )

Returns callback reflection.

Returns callback reflection.

Returns

NFunctionReflection|NMethodReflection
public boolean
# isStatic( )

Returns

boolean
public string
# __toString( )

Returns

string
Methods inherited from NObject
__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 NObject
$reflection
Nette Framework 2.0.13 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.8.0