diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-10 12:26:04 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-10 12:26:04 +0100 |
commit | 4872cc627642044f46ba8a8726902592a1fae05f (patch) | |
tree | a416aff6d3511b17923001a664ece1deca01b4d7 /documentation | |
parent | d2e10c764d1b8860dd798eda3055fc957ff556ad (diff) |
first setup for magic methods __get(), __set(), __isset() and __unset()
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/magic-methods-and-interfaces.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/documentation/magic-methods-and-interfaces.html b/documentation/magic-methods-and-interfaces.html index 244ebcd..f485805 100644 --- a/documentation/magic-methods-and-interfaces.html +++ b/documentation/magic-methods-and-interfaces.html @@ -390,7 +390,7 @@ public: * @param object The object that is being iterated over * @param map The internal C++ map that is being iterated over */ - MapIterator(Php::Base *object, const std::map<std::string,std::string> &map) : + MapIterator(Map *object, const std::map<std::string,std::string> &map) : Php::Iterator(object), _map(map), _iter(map.begin()) {} /** @@ -563,11 +563,11 @@ extern "C" { properties. </p> <p> - For this to work, we has to add the Php::Traversable class as base class + For this to work, we had to add the Php::Traversable class as base class to the Map class, and implement the getIterator() method. This method returns a new MapIterator class, which is allocated on the heap. Don't worry about memory management: the PHP-CPP library will destruct your - operator the moment the foreach loop is finished. + iterator the moment the foreach loop is finished. </p> <p> The MapIterator class is derived from the Php::Iterator class, and @@ -581,5 +581,5 @@ extern "C" { <p> Our MapIterator implementation internally is just a small wrapper around a C++ iterator class. It is of course up to you to create more complex - implementation when needed. + iterators when needed. </p> |