![]() |
Callbacks are nifty
I finally found a way to emulate an event firing model from Java: callbacks. http://www.php.net/callback and http://www.php.net/create_function . Nowhere near as clean as Java with implementing interfaces and providing listeners, but it works:
PHP Code:
PHP Code:
Code:
installer.addUpdateListener(new InstallerUpdateListener() |
May I ask why you are using create_function()?
|
To create an anonymous function rather than one publicly accessible by every other bit of code.
|
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|