Bearsampp 2026.3.26
API documentation
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 1171 of file class.winbinder.php.

1172{
1173 global $bearsamppWinbinder;
1174
1175 if ($bearsamppWinbinder->callback[$window][2] != null) {
1176 $bearsamppWinbinder->destroyTimer($window, $bearsamppWinbinder->callback[$window][2][0]);
1177 }
1178
1179 call_user_func_array(
1180 array($bearsamppWinbinder->callback[$window][0], $bearsamppWinbinder->callback[$window][1]),
1181 array($window, $id, $ctrl, $param1, $param2)
1182 );
1183}