summaryrefslogtreecommitdiff
path: root/include/value.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 09:39:14 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-14 09:39:14 +0100
commitc9274ab3c422390998e628820afc6a27c12a1a57 (patch)
tree7f416700947dfea34428c1e2ff8d0ebfba69dfd5 /include/value.h
parent684f81e8bcbadc3d522e6557161275deaad4fd3b (diff)
introduced super globals Php::POST, Php::GET, et cetera, fixed setting array members, introduced Value::attach() method
Diffstat (limited to 'include/value.h')
-rw-r--r--include/value.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/value.h b/include/value.h
index f2850c9..9c48f1f 100644
--- a/include/value.h
+++ b/include/value.h
@@ -112,6 +112,12 @@ public:
Value(struct _zval_struct *zval, bool ref = false);
/**
+ * Wrap around a hash table
+ * @param ht Hashtable to wrap
+ */
+ Value(struct _hashtable *ht);
+
+ /**
* Wrap around an object implemented by us
* @param object Object to be wrapped
*/
@@ -846,6 +852,18 @@ protected:
struct _zval_struct *detach();
/**
+ * Attach a different zval
+ *
+ * This will first detach the current zval, and link the Value object to
+ * a different zval. Versions exist to attach to a zval and to an entire
+ * hash table
+ *
+ * @param val
+ */
+ void attach(struct _zval_struct *val);
+ void attach(struct _hashtable *hashtable);
+
+ /**
* Set a certain property without running any checks (you must already know
* for sure that this is an array, and that the index is not yet in use)
*
@@ -874,6 +892,7 @@ protected:
friend class Member;
friend class ClassBase;
friend class Iterator;
+ friend class Extension;
};
/**