Hi guys!I have a few questions about classes,hope you guys can help me.
I have a problem right here:
Scenario:
Two classes, One of them subset of another,requires it to be called.
eg.class one
<?php
class dataselector {
function dataselect($blah,$blah,$blah){
/*... defines the function ...*/
}
/*some other functions*/
}
?>
eg.class two
<?php
class crap {
function crapselect($blah1,$blah2,$blah3){
/*... defines the function ... WHERE I NEED TO MAKE A REFERENCE TO THE FUNCTION*/
}
/*some other functions*/
}
?>
Explaination:
The first class(dataselect) is a data extraction class, which I wrote for data extraction, and i want the second class,third class(...so on) to make a reference to the first class(dataselect), the problem is, i don't know how.
thankyou for taking your time to read through and understand what I am trying to do here.