Re: Fw: [PHP-GTK] ext/libglade complete?
| From: | Steph Fox | Date: | Sun, 30 Oct 2005 21:22:30 +0000 |
| Subject: | Re: Fw: [PHP-GTK] ext/libglade complete? | ||
| References: | 1 2 3 4 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2015@lists.php.net to get a copy of this message | ||
> > What's really wrong with it is that it encourages name changing. That
> > parameter should only be used if there's a reason for it, i.e. if
> > you want
> > to have array($this, 'gladefile_callback'); in there. The rest of
> > the time,
> > why type extra stuff?
>
> Sure. Most of the time you won't even need that parameter, and hell,
> if you just want to add some user data to a callback, maybe the first
> entry in the array is 'null' instead of callback name, so the
> callback gets hooked up to the function of the same name.
OK, so all we really need to do is check a) if there's an array there and b)
whether it's callable...