summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-10 12:26:04 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-10 12:26:04 +0100
commit4872cc627642044f46ba8a8726902592a1fae05f (patch)
treea416aff6d3511b17923001a664ece1deca01b4d7 /documentation
parentd2e10c764d1b8860dd798eda3055fc957ff556ad (diff)
first setup for magic methods __get(), __set(), __isset() and __unset()
Diffstat (limited to 'documentation')
-rw-r--r--documentation/magic-methods-and-interfaces.html8
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&lt;std::string,std::string&gt; &map) :
+ MapIterator(Map *object, const std::map&lt;std::string,std::string&gt; &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>