Property | Type | Description | |
---|---|---|---|
$class | |||
$method |
Method | Description | |
---|---|---|
__construct ( string $class, string $method ) : |
Constructor | |
__invoke ( ) : mixed | Execute the representative method when this object is called as a function. | |
create ( string $class, string $method ) : |
Quick-create for building an instance of Method | |
dispatch ( Callable | string $method, mixed $multiple_optional_args = null ) : boolean | mixed | Dispatch a method, whether a filter or function | |
dispatch_array ( Callable | string $method, array $args = [] ) : boolean | mixed | Dispatch a method, whether a filter or function | |
exists ( ) : boolean | Determine if the method exists and can be called | |
method_array ( ) : callable | Get the array that represents this method |
public __construct ( string $class, string $method ) : |
||
$class | string | The name of the class |
$method | string | The method of the class to execute |
return | The method of the class |
public static dispatch ( Callable | string $method, mixed $multiple_optional_args = null ) : boolean | mixed | ||
$method | Callable | string | The method to call |
$multiple_optional_args | mixed | Multiple arguments to dispatch() should be passed as separate arguments |
return | boolean | mixed | The return value from the dispatched method |
public method_array ( ) : callable | ||
return | callable | An array that can be used as a function (O_o) |