As a developer in a large group of developers, how would you detemine that a class has been already extended and by what class without looking at every IPB hooks_files record on every site to be installed?
By the way php classes can be extended more than once as in this example:
class employee
{
protected $empname;
protected $empage;
function setdata($empname,$empage)
{
$this->empname = $empname;
$this->empage = $empage;
}
function outputData(){}
}
class EmployeeData extends employee //extending abstract class
{
function __construct($name,$age)
{
$this->setdata($name,$age);
}
function outputData()
{
echo $this->empname;
echo $this->empage;
}
}
class EmployeeD extends employee //extending abstract class
{
function __construct($name,$age)
{
$this->setdata($name,$age);
}
function outputData()
{
echo $this->empname;
echo $this->empage;
}
}
$a = new EmployeeData("Hitesh","24");
$a->outputData();
$b = new EmployeeD("Jones","30");
$b->outputData();
?> <?PHP
It is not the preferred method but when developing hooks while others are developing hooks without any communication it would seem to be the only way.
I am waiting for an answer as I have already run into this problem numerous times and having to go to every site that installs it to find the other class really defeats th idea of having classes.
Thanks in advance
Villabus