Hi Guy's
Now this may be a stupid question but I was wondering if anyone could help me accomplish something. Here's what I'm trying to do (in brief).
CLASSONE.PHP
class one extends Core {
public function __construct() {
}
public function atestone() {
return $this;
}
public function __destruct() {
}
}
CLASSTWO.PHP
class two extends Core {
public function __construct() {
}
public function atesttwo() {
return $this;
}
public function __destruct() {
}
}
CORE.PHP
class Core{
public function __construct() {
}
public function testcore() {
return $this->atestone();
// OR
return $this->atesttwo();
}
public function __destruct() {
}
}
I'm looking to have a core class basically. Ideally, all classes can utilise other functions but my main aim is to have one core class that can use (freely) all other classes that are extended to it.
Is this possible?
Thanks in advance
James