Re: parent classes
| From: | Cristiano Duarte | Date: | Mon, 01 Sep 2003 22:06:29 +0000 |
| Subject: | Re: parent classes | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161391@lists.php.net to get a copy of this message | ||
Ok. But if I have an instance... Is there a way to find all its class
parents ?
Cristiano
"Catalin Trifu" <catalin@isp-software.de> escreveu na mensagem
news:20030901081924.1292.qmail@pb1.pair.com...
> Hi,
>
> If I'm not mistaking here, you can not find the parent(s)
> of a class without an instance and it is quite logical.
> Since PHP is not a compiled language, the parent
> is available only at runtime.
>
> Cheers,
> Catalin
>
>
> "Cristiano Duarte" <cunha17@uol.com.br> wrote in message
> news:20030901010438.62974.qmail@pb1.pair.com...
> > I want to iterate through parents of some class.
> > The function get_parent_class is not enough since it retrieves only the
> > first parent of an instance.
> > Is there a way to retrieve the parents of a class without having an
> instance
> > of this class ? And if I have an instance, can I retrieve all parent
> > classes?
> >
> > Cristiano Duarte.