C# Class Pchp.Core.PhpCallback

Callable object representing callback to a routine. Performs dynamic binding to actual method and provides IPhpCallable interface.
Inheritance: IPhpCallable
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Protected Properties

Свойство Type Description
_lazyResolved PhpCallable

Méthodes publiques

Méthode Description
Create ( IPhpCallable callable ) : PhpCallback
Create ( PhpCallable callable ) : PhpCallback
Create ( PhpValue item1, PhpValue item2 ) : PhpCallback
Create ( string function ) : PhpCallback
CreateInvalid ( ) : PhpCallback
Invoke ( Context ctx ) : PhpValue

Invokes the callback with given arguments.

Méthodes protégées

Méthode Description
BindCore ( Context ctx ) : PhpCallable

Performs binding to the routine delegate.

InvokeError ( Context ctx, PhpValue arguments ) : PhpValue

Missing function call callback.

Private Methods

Méthode Description
Bind ( Context ctx ) : PhpCallable

Ensures the routine delegate is bound.

BindNew ( Context ctx ) : PhpCallable

Binds the routine delegate.

Method Details

BindCore() protected abstract méthode

Performs binding to the routine delegate.
protected abstract BindCore ( Context ctx ) : PhpCallable
ctx Context
Résultat PhpCallable

Create() public static méthode

public static Create ( IPhpCallable callable ) : PhpCallback
callable IPhpCallable
Résultat PhpCallback

Create() public static méthode

public static Create ( PhpCallable callable ) : PhpCallback
callable PhpCallable
Résultat PhpCallback

Create() public static méthode

public static Create ( PhpValue item1, PhpValue item2 ) : PhpCallback
item1 PhpValue
item2 PhpValue
Résultat PhpCallback

Create() public static méthode

public static Create ( string function ) : PhpCallback
function string
Résultat PhpCallback

CreateInvalid() public static méthode

public static CreateInvalid ( ) : PhpCallback
Résultat PhpCallback

Invoke() public méthode

Invokes the callback with given arguments.
public Invoke ( Context ctx ) : PhpValue
ctx Context
Résultat PhpValue

InvokeError() protected méthode

Missing function call callback.
protected InvokeError ( Context ctx, PhpValue arguments ) : PhpValue
ctx Context
arguments PhpValue
Résultat PhpValue

Property Details

_lazyResolved protected_oe property

Resolved routine to be invoked.
protected PhpCallable _lazyResolved
Résultat PhpCallable