2024.8.23
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 1040 of file class.winbinder.php.

1041{
1042 global $bearsamppWinbinder;
1043
1044 if ( $bearsamppWinbinder->callback[$window][2] != null ) {
1045 $bearsamppWinbinder->destroyTimer( $window, $bearsamppWinbinder->callback[$window][2][0] );
1046 }
1047
1048 call_user_func_array(
1049 array($bearsamppWinbinder->callback[$window][0], $bearsamppWinbinder->callback[$window][1]),
1050 array($window, $id, $ctrl, $param1, $param2)
1051 );
1052}