프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$class | |||
$method |
메소드 | 설명 | |
---|---|---|
__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 |
리턴 | 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 |
리턴 | boolean | mixed | The return value from the dispatched method |
public method_array ( ) : callable | ||
리턴 | callable | An array that can be used as a function (O_o) |