uuh, you are right, i could do it like that, but i'd have to define all functions (in your example getObject) in all my 20+ derived managers. well, maybe it's the best solution now. i have to think about it...
another solution (it's more of a hack) might be:
function callStatic($class, $func, ...) {
call_user_func( array($class,$func), ...);
}
in Manager:
function getObject($id) {
function xy() {
callStatic(__CLASS__, 'getObjectFromResult', ...);
}
}
but before i use this, i'd switch the programming language :-) and i am not sure if CLASS would be "Manager" or "AddressManager" in the example anyway (didn't test it).
imho, this functionality is simply missing in php.
thank you very much for your help,
martin