This is a dynamic proxy class that can proxy for Ismo_Core_State_HTTP and
derivated clases. The instance it should be a proxy for is given to the constructor and then all properties that are accessed (both retrieved and set) and all methods invoked on the proxy are forwared to the "target" instance. The configured interceptors are applied before the call is forwarded to the target, and the interceptors decide if the call is passed on down the chain (of interceptors) or not.
Note that this class requires PHP version 4.3.0 or higher with the overload extension enabled (it's enabled by default)
Located in /AOP/StateProxy.php (line 41)
The constructor.
This creates a dynamic proxy for the class instance given to the constructor.
Handles the request.
This is the method that the Ismo_Core_Application class calls. It figures out the action, checks if the request is authorized, expose the default variables and then calls the action method.
This method should never be called manually.
Missing action method saver.
This method is called whenever an action which doesn't have a corresponding exec... method is requested. This implementation just calls the execDefault (i.e. the default action) method.
Override if you want some other behaviour.
Handles showMethod calls recursively
This method takes the result value of an execute action method call. If the result is a string value that matches an appropriate show method the show method is called. In turn, each resulting return value is handled recursively to allow a 'layered' view.
Method invoker.
This method is called when a method is called on the proxy. The proxy then invokes the method on the target.
Property getter.
This method is called when a property of the proxy is retrived. The proxy when gets the value from the target instance.
Note:
Causes an "PHP ERROR: Undefined property" error if this method returns false, so it has to always return true. However the return value is set to
- isset($proxy->foo);
in case the property isn't set.
- null
Property setter.
This method is called when a property of the proxy is set. The proxy then sets the property of the target instance.
Documentation generated on Mon, 14 Jun 2004 11:59:37 +0200 by phpDocumentor 1.3.0RC3