0
我不认为我在这里很愚蠢。PHP - 执行父功能时获取子类?
class Parent {
function load($function) {
if (method_exists(__CLASS__, $function)) {
// Load Function
}
}
}
Class Child extends Parent {
function foo() {
}
}
$this->Child->load('foo');
问题是,__CLASS__
返回'父'。我如何获得它返回孩子?
啊当然是。非常感谢你的帮助。将在9分钟内打勾。 – JasonS 2010-10-16 19:34:10