HTML_Quickform callback handling
| From: | Matthias Pigulla | Date: | Tue, 23 Sep 2003 10:27:06 +0000 |
| Subject: | HTML_Quickform callback handling | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-21914@lists.php.net to get a copy of this message | ||
Hi everyone,
I just started using QuickForm and have a question regarding the
handling of callback functions. I hope I am right here :)
All functions
if (is_string($callback)) {
return function_exists($callback);
} elseif (is_array($callback) && is_object($callback[0])) {
return method_exists($callback[0], $callback[1]);
} else {
return false;
}
--
w e b f a c t o r y G m b H
Matthias Pigulla <mp@webfactory.de> - Geschaeftsfuehrer
Lessingstr. 60 - D-53113 Bonn - Germany - www.webfactory.de
Fon +49(0)228-9114455 - Fax +49(0)228-9114499 - ICQ 49185492