Hi Tim,
> If you want access to error functions within the db class it must either
> extend the error class or have an error object within it. Either ...
>
I'll go for the latter, because extends isn't appropriate in this case:
> Class DB
> { var $error;
> ...
> function DB() // constructor
> { ...
> $this->error = new Error();
> }
> ...
> }
>
> Class Core
> { var $db;
> var error;
>
> function Core() // constructor
> { ...
> $this->db = new DB();
> $this->error = new Error();
> ...
> }
> }
> at the end of the day, both these are ways of getting around the
> lack of multiple inheritance
>
In this case, don't I have a completely different error object in $Core->db?
adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]