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
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
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
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
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
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
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 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
OK, so that came out fairly illegible. Try again:
Hi, new to PHP5 (and the forums evidently !) and I have a question about the
object model.
I want to be able to create a class which is allows abstraction from
specifics. So for one example, imagine a generic database connection wrapper
which can
Hi, new to PHP5 and I have a question about the object model.
I want to be able to create a class which is allows abstraction from
specifics. So for one example, imagine a generic database connection wrapper
which can have multiple drivers depending on the database used. Some of the
functionalit
10 matches
Mail list logo