AW: [PEAR-DEV] HTML_Quickform callback handling
| From: | Matthias Pigulla | Date: | Tue, 23 Sep 2003 10:38:56 +0000 |
| Subject: | AW: [PEAR-DEV] HTML_Quickform callback handling | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-21915@lists.php.net to get a copy of this message | ||
Sorry, I was too quick... :(
I just started using QuickForm and have a question regarding the
handling of callback functions. I hope I am right here :)
All functions taking callbacks check these by calling _callbackExists
before calling them with call_user_func.
Although call_user_func is able to handle an array(string, string) as a
"static" callback, _callbackExists does not reflect this. That way, it
is impossible to have QuickForm use a static callback.
Why don't you just call is_callable($callback) in _callbackExists? This
should do the trick...
Best regards,
Matthias