Re: PHP object communication
| From: | Martín Marqués | Date: | Wed, 24 Oct 2001 22:58:41 +0000 |
| Subject: | Re: PHP object communication | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72182@lists.php.net to get a copy of this message | ||
On Mié 24 Oct 2001 19:45, ad@m.beecher.net wrote:
> > I think you have things mistaken. What you want is to EXTEND an existing
> > object with new variables and functions. See class CLASS_NAME EXTENDS
> > OLD_CLASS.
>
> Quick answer appreciated Martín, but I really don't. I'd like to keep, for
> example, the $Core->Error and $Core->DB objects separate from each other,
Sorry for the TOO FAST RESPONCE! :-)
$Core is one object, and Error and DB are properties of the object.
Let me put it clearer. You have an Error object, and you now want to make a
DB object, with the same properties of the Error object. Just extend it.
Personally I have never made an object that ha other objects definied inside
it, but who knows....
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------