diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-07-23 11:20:18 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-07-23 11:20:18 +0200 |
commit | db7cb1d6e44470b820fd5f4f4650a8c4ce392ab6 (patch) | |
tree | b0b907ac6367c4e13d8d894636bf5efd3158254e /zend | |
parent | f66ec20be218343766db3441fd20ff979d50240e (diff) |
It now is possible to assign Php::Value["whatever"] results directly to new Php::Value objects
Diffstat (limited to 'zend')
-rw-r--r-- | zend/value.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/zend/value.cpp b/zend/value.cpp index 7c95c06..5354904 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -689,6 +689,28 @@ Value &Value::operator=(double value) } /** + * Assignment operator + * @param value + * @return Value + */ +Value &Value::operator=(const HashMember<std::string> &value) +{ + // assign value object + return operator=(value.value()); +} + +/** + * Assignment operator + * @param value + * @return Value + */ +Value &Value::operator=(const HashMember<int> &value) +{ + // assign value object + return operator=(value.value()); +} + +/** * Add a value to the object * @param value * @return Value |