Dynamic inheritance/implementation in PHP 5.*
- by Rolf
Hi everyone,
I'm implementing a Logger, based on a XML declaration (path to class, method name, custom log message). There is also a Logger interface that defines the function __call, the latter logs what's needed and then relays the call to the target method.
The only difficulty is to make each class, declared in the XML file, implement this interface with __call. So finally my question: is there a way to set at runtime the parent class or the implemented interface of another class ?
Thanks in advance !
Rolf