XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Utility class which collects utility functions for delegates. More...
Public Member Functions | |
__construct () | |
Private Construct. In other words, it's possible to create an instance of this class. | |
Static Public Member Functions | |
static | call () |
static | raiseEvent () |
[Static] Utility method for calling event-delegates. | |
static | applyStringFilter () |
static | _compareCallback ( $callback1, $callback2) |
Utility class which collects utility functions for delegates.
XCube_DelegateUtils\call("Delegate Name"[, function args...]);
XCube_DelegateUtils\raiseEvent("Event Name"[, function params...]);
$string = XCube_DelegateUtils\applyStringFilter("Filter Name", $string, [, option params...]);
Definition at line 551 of file XCube_Delegate.class.php.
__construct | ( | ) |
Private Construct. In other words, it's possible to create an instance of this class.
Definition at line 556 of file XCube_Delegate.class.php.
|
static |
$callback1 | callback |
$callback2 | callback |
Definition at line 692 of file XCube_Delegate.class.php.
|
static |
1st | string - Delegate Name |
2nd | string |
3rd | and more - Optional function parameters |
Definition at line 661 of file XCube_Delegate.class.php.
|
static |
Definition at line 559 of file XCube_Delegate.class.php.
|
static |
[Static] Utility method for calling event-delegates.
1st | Delegate Name |
2nd | and more : Delegate function parameters |
This method is a shortcut for calling delegates without actual delegate objects. If there is not the delegate specified by the 1st parameter, the delegate will be made right now. Therefore, this method is helpful for events.
The upper code equals the following code;
In this case, another class never calls the event.
Other classes may call only ClassA::check();
Definition at line 639 of file XCube_Delegate.class.php.