diff options
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/base.h b/include/base.h index d944e3c..7e33d8d 100644 --- a/include/base.h +++ b/include/base.h @@ -155,6 +155,19 @@ public: */ virtual void __unset(const Php::Value &key); + /** + * Call a method + * + * This method is called when a method is called from the PHP script that + * was not explicitly defined. You can use this to catch variable method + * names, or to support all thinkable method names. + * + * @param method Name of the method that was called + * @param params The parameters that were passed to the function + * @return Value The return value + */ + virtual Value __call(const char *method, Parameters ¶ms); + private: /** |