[UPHPU] Nested Classes?
Nathan Lane
nathamberlane at gmail.com
Wed Apr 16 10:04:29 MDT 2008
That might be a possibility in PHP - a function pointer or delegate like in
JavaScript. I'll try it out.
On Wed, Apr 16, 2008 at 10:02 AM, Craig Jackson <CJackson at cirris.com> wrote:
> Im not too strong in OOP, yet. But, would this be a possibility? Or
> something like it?
>
> class Database {
> private $xmlAdapter;
>
> function newXmlAdapter() {
> $this->xmlAdapter = new XMLAdapter();
> }
>
> }
>
> class XMLAdapter {
>
> }
>
> Craig Jackson
> Web Developer
>
>
>
>
--
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com
More information about the UPHPU
mailing list