You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, callback cannot execute methods from classes, just functions.
call_user_func(array($class, $method)) doesn't work on PHP4. And even if I find a way to call, it will not be useful in some cases, as it demands to instantiate a new class or execute the method statically. For instance, if the callee class make a Ghetto-RPC call, probably the the same class will do some use of the returned data.
Then, what is needed:
Implementation of execution of class methods in callback()
Reference of the callee in callback()
Optional automatic execution of the callbacks based on the reference of the callee class and method
The text was updated successfully, but these errors were encountered:
Standardize callbacks by eliminating informal arrays and replacing them by Call and CallsQueue in frontend.
It will be more verbose.
It will allow multiple callbacks.
It will not allow static calls (remember: frontend will be usually PHP 4).
For now, it will not even allow calls to object methods, as the returned data (from backend) won't store any reference to objects instantiated in frontend that don't belong or get exchanged with Ghetto RPC.
Maybe correlating a callback with a specific object, using a hash? Ghetto RPC is supposed to provide a Factory for objects in the backend. Doing that in frontend is something I'd like not to do.
For now, callback cannot execute methods from classes, just functions.
call_user_func(array($class, $method)) doesn't work on PHP4. And even if I find a way to call, it will not be useful in some cases, as it demands to instantiate a new class or execute the method statically. For instance, if the callee class make a Ghetto-RPC call, probably the the same class will do some use of the returned data.
Then, what is needed:
The text was updated successfully, but these errors were encountered: