summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 09:13:20 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 09:13:20 +0100
commitae4fa5f871d937773e9facde87a32784e715e3ae (patch)
tree01d59e18b7ba8003797137063a4cc7ca29290ca7 /include
parent27adce6fbddd0447c4c1de56f85e52da2d4662c7 (diff)
Fixed the Value::contains method and added the isCallable(name) function to see if the object has an accessible member function
Diffstat (limited to 'include')
-rw-r--r--include/value.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/value.h b/include/value.h
index 5bfb94d..e080df7 100644
--- a/include/value.h
+++ b/include/value.h
@@ -979,9 +979,20 @@ public:
}
/**
+ * Is a method with the given name callable?
+ *
+ * This is only applicable when the Value contains a PHP object
+ *
+ * @param name Name of the function
+ * @return boolean
+ */
+ bool isCallable(const char *name);
+
+ /**
* Call a method
- * We have ten variants of this function, depending on the number of parameters
- * This is only applicable when the Value contains PHP object
+ *
+ * This is only applicable when the Value contains a PHP object
+ *
* @param name Name of the function
* @return Value
*/