I know that in actionscript, it is possible to define a proxy class which can handle attempts to call methods that have not been defined. For instance, a class like this has no method 3:
class Foo {
function method1() {
}
function method2() {
}
}
$myObj = new Foo();
Is it possible to modify the class so that an attempt to call $myObj->methodX() can be intercepted and dynamically routed to something of my choosing?