Re: [PHP-GTK] GtkDialog Part 2
[email protected] (Rich Payne)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 23 Jul 2001, Andrei Zmievski wrote: > On Sun, 22 Jul 2001, Rich Payne wrote: > > > > If I do that then I get: > > > > <br> > > <b>Fatal error</b>: Class 'compose_window' does not support overloaded > > method calls in <b>/home/rdp/rdp_projects/teak/compose_class.php</b> on > > line <b>61</b><br> > > > > which comes from this line: > > > > $this->send_button->add($send_box); > > > > $send_box is just a GtkHbox. > > This is currently a limitation of the Zend engine. Basically, there is > no way to invoke a function on a class property that is part of the > overloaded property chain. You'd have to do this: > > $send_button = $this->send_button; > $send_button->add($send_box); OK, I've converted one file to this and it seems to work OK. The one note I would make is that in some cases (example: itemFactory Menus). It's necessary to do the opposite, setting the class var = to the local. $itemf=.... $this->itemf=$itemf; --rdp -- Rich Payne [email protected] www.alphalinux.org