Re: Silly OOP question

From: Date: Sun, 14 Nov 2004 19:26:08 +0000
Subject: Re: Silly OOP question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201994@lists.php.net to get a copy of this message
Brent Clements wrote:
I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a "project.class" file that has functions for dealing with individual projects because you break down ideas into singular entities in OOP(as I understand it) But what if I wanted to deal with multiple projects such as getting a list of the projects in my database, should I create a function in the "project.class" to handle the now plural request, or should I create a "projects.class" file that has a function called "getProjects". Hopefully I'm explaining this question right. It makes sense in my own head. :-) Thanks, Brent Who cares whether or not PHP is an object oriented language? If it has OO features, you can call it whatever you like, I'd still be happy.
-- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/register&r=6584

« previous php.general (#201994) next »