Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.winbinder.php File Reference

Go to the source code of this file.

Data Structures

class  WinBinder

Functions

 __winbinderEventHandler ($window, $id, $ctrl, $param1, $param2)

Function Documentation

◆ __winbinderEventHandler()

__winbinderEventHandler ( $window,
$id,
$ctrl,
$param1,
$param2 )

Event handler for WinBinder events.

This function is called by WinBinder when an event occurs. It retrieves the callback associated with the window and executes it. If a timer is associated with the callback, the timer is destroyed before executing the callback.

Parameters
mixed$windowThe window object where the event occurred.
int$idThe ID of the event.
mixed$ctrlThe control that triggered the event.
mixed$param1The first parameter of the event.
mixed$param2The second parameter of the event.

Definition at line 1139 of file class.winbinder.php.

1140{
1141 global $bearsamppWinbinder;
1142
1143 if ($bearsamppWinbinder->callback[$window][2] != null) {
1144 $bearsamppWinbinder->destroyTimer($window, $bearsamppWinbinder->callback[$window][2][0]);
1145 }
1146
1147 call_user_func_array(
1148 array($bearsamppWinbinder->callback[$window][0], $bearsamppWinbinder->callback[$window][1]),
1149 array($window, $id, $ctrl, $param1, $param2)
1150 );
1151}