summaryrefslogtreecommitdiff
path: root/include/classbase.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-09 12:51:02 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-09 12:51:02 +0100
commiteb4962468ace477cdd72fd1da48ae304407e40d2 (patch)
treeab437ea4c9acdaf523e4c3a1ba6ace8b88bf3025 /include/classbase.h
parent116770c10d2f8219be6d90207b56853bf5a356e1 (diff)
added arrayaccess implementation
Diffstat (limited to 'include/classbase.h')
-rw-r--r--include/classbase.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/classbase.h b/include/classbase.h
index f15e879..81454ba 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -243,6 +243,40 @@ private:
static int countElements(struct _zval_struct *object, long *count);
/**
+ * Function that is called when the object is used as an array in PHP
+ * @param object The object on which it is called
+ * @param offset The name of the property
+ * @param type The type of the variable???
+ * @return zval
+ */
+ static struct _zval_struct *readDimension(struct _zval_struct *object, struct _zval_struct *offset, int type);
+
+ /**
+ * Function that is called when the object is used as an array in PHP
+ * @param object The object on which it is called
+ * @param offset The name of the property
+ * @param value The new value
+ * @return zval
+ */
+ static void writeDimension(struct _zval_struct *object, struct _zval_struct *offset, struct _zval_struct *value);
+
+ /**
+ * Function that is called when the object is used as an array in PHP
+ * @param object The object on which it is called
+ * @param member The member to check
+ * @param check_empty ????
+ * @return bool
+ */
+ static int hasDimension(struct _zval_struct *object, struct _zval_struct *member, int check_empty);
+
+ /**
+ * Function that is called when the object is used as an array in PHP
+ * @param object The object on which it is called
+ * @param member The member to remove
+ */
+ static void unsetDimension(struct _zval_struct *object, struct _zval_struct *member);
+
+ /**
* Retrieve pointer to our own object handlers
* @return zend_object_handlers
*/