Re: GtkDialog Part 2

From: Date: Mon, 23 Jul 2001 23:36:15 +0000
Subject: Re: GtkDialog Part 2
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2330@lists.php.net to get a copy of this message
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 rpayne@alphalinux.org www.alphalinux.org

« previous php.gtk (#2330) next »