C# Class Pchp.Core.PhpCallback

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

Protected Properties

Property Type Description
_lazyResolved PhpCallable

Public Methods

Method 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.

Protected Methods

Method Description
BindCore ( Context ctx ) : PhpCallable

Performs binding to the routine delegate.

InvokeError ( Context ctx, PhpValue arguments ) : PhpValue

Missing function call callback.

Private Methods

Method Description
Bind ( Context ctx ) : PhpCallable

Ensures the routine delegate is bound.

BindNew ( Context ctx ) : PhpCallable

Binds the routine delegate.

Method Details

BindCore() protected abstract method

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

Create() public static method

public static Create ( IPhpCallable callable ) : PhpCallback
callable IPhpCallable
return PhpCallback

Create() public static method

public static Create ( PhpCallable callable ) : PhpCallback
callable PhpCallable
return PhpCallback

Create() public static method

public static Create ( PhpValue item1, PhpValue item2 ) : PhpCallback
item1 PhpValue
item2 PhpValue
return PhpCallback

Create() public static method

public static Create ( string function ) : PhpCallback
function string
return PhpCallback

CreateInvalid() public static method

public static CreateInvalid ( ) : PhpCallback
return PhpCallback

Invoke() public method

Invokes the callback with given arguments.
public Invoke ( Context ctx ) : PhpValue
ctx Context
return PhpValue

InvokeError() protected method

Missing function call callback.
protected InvokeError ( Context ctx, PhpValue arguments ) : PhpValue
ctx Context
arguments PhpValue
return PhpValue

Property Details

_lazyResolved protected_oe property

Resolved routine to be invoked.
protected PhpCallable _lazyResolved
return PhpCallable