diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-08 10:54:44 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-08 10:54:44 +0100 |
commit | 8b94e46c8f044a21c18435525da84bee28594d1a (patch) | |
tree | 4eb1165b907939d9fafc55ccf1215134debcfb84 /include/classbase.h | |
parent | 7c32658df2fe777ba3ac20030cfce9d2f424caef (diff) |
implemented the Countable spl without using the actual spl
Diffstat (limited to 'include/classbase.h')
-rw-r--r-- | include/classbase.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/classbase.h b/include/classbase.h index 92e637d..05ab2f4 100644 --- a/include/classbase.h +++ b/include/classbase.h @@ -233,6 +233,16 @@ private: static struct _zend_object_value createObject(struct _zend_class_entry *entry); /** + * Function that is used to count the number of elements in the object + * If the user has implemented the Countable interface, this method will + * call the count() method + * @param val + * @param count + * @return int + */ + static int countElements(zval *object, long *count TSRMLS_DC); + + /** * Retrieve pointer to our own object handlers * @return zend_object_handlers */ |