Re: What does this mean?
| From: | Andrei Zmievski | Date: | Wed, 18 Jul 2001 13:53:25 +0000 |
| Subject: | Re: What does this mean? | ||
| References: | 1 2 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2262@lists.php.net to get a copy of this message | ||
On Wed, 18 Jul 2001, Markus Fischer wrote:
> On Wed, Jul 18, 2001 at 03:18:54PM +0200, Cesare D'Amico wrote :
> > I take this snippet from a mail from this ML I read a few days ago...
> > >Class password_dialog extends GtkDialog {
> > > function password_dialog($server) {
> > > GtkDialog::GtkDialog();
>
> > What does this line do?
> > I tried to search in the PHP manual, but I couldn't find the :: operator...
>
> Call's static method 'GtkDialog()' from class 'GtkDialog' .
>
> Foo::Bla() syntax is for calling static methods; you know, that
> stuff you don't have to create an instance first.
Actually, a better way to call parent's constructor would be to do:
$this->GtkDialog();
-Andrei
"The only true currency in this bankrupt world is what we share with each
other when we're uncool." -- Lester Bangs, from the film 'Almost Famous'