Hello PHP Gurus,
Anyone care to weigh in?
What is the recommended way to accomplish the following?
Assuming I have a class which i need to utilize ie
class employee
{
var $userid;
var $name;
function employee($userid, $name){
$this->userid = $userid;
$this->name = $name;
}
function getName(){
return $this->name;
}
} // end class
and i want to make another class which will be an array of employees and call it employeelist or something. Inside this list class I would include database function to populate employees and other functionality specific to an employeelist (i.e.) like stack funcitonality etc)
Anyway what would be the best way to do this?
another php class? or some other way?
Thanks Ahead,
Geoffrey