On Wed, 2007-07-11 at 16:46 +0100, Steve Perkins wrote:
>
> I guess there are lots of "workaround" ways. I could write lots of
> "middleman" code in generic and use things like __set and __get etc but its
> lots of extra overhead. I also know I could use extends but that makes the
> code the wrong
I also don't really get the idea of interface and abstract classes ? They
don't seem to be any practical use ? Maybe that's me ? Anyway, not really
relevant to this post ...
there is a lot of usefulness in these constructs; look into design patterns.
also, there are code libraries already writte
On Wed, 2007-07-11 at 12:07 -0400, Nathan Nobbe wrote:
> > I also don't really get the idea of interface and abstract classes ? They
> > don't seem to be any practical use ? Maybe that's me ? Anyway, not really
> > relevant to this post ...
>
> there is a lot of usefulness in these constructs; loo
some ideas about class design:
1. properties should normally (read almost always) be private.
2. the apps interface to the DB [connection] is via the 'generic'
class, the app should have to know nothing about the drive object and
should have no direct access to it.
3. use an interface definition f
Robert,
I looked at your code in InterJinn a couple of times; i havent gone over all
of it mind you but it looks pretty sweet.
have you had a look at any of the other frameworks i mentioned earlier in
this thread?
ez components, onPHP, and now there is a new one ive found (in recent
thread) Radic
On Wed, 2007-07-11 at 12:50 -0400, Nathan Nobbe wrote:
> Robert,
>
> I looked at your code in InterJinn a couple of times; i havent gone over all
> of it mind you but it looks pretty sweet.
It's very different in many respects from other styles of coding. It's
an MVC approach for the most part bu
You probably ought to have:
class mysql_driver extends generic_driver {
}
Seems like that would be the most reasonable OOP model, imho.
That said, I suspect that if you do something like:
$driver = $this->driver;
You then may be able to access the driver-specific data using
$driver->propl; e
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: 11 July 2007 21:29
To: Steve Perkins
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP5 objects access/instantiation model (correction)
You probably ought to have:
class mysql_driver extends generic_driver { }
Seems like that would be the
8 matches
Mail list logo