summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--documentation/constructors-and-destructors.html10
-rw-r--r--documentation/exceptions.html1
-rw-r--r--documentation/properties.html1
3 files changed, 7 insertions, 5 deletions
diff --git a/documentation/constructors-and-destructors.html b/documentation/constructors-and-destructors.html
index 0453e5f..292aa60 100644
--- a/documentation/constructors-and-destructors.html
+++ b/documentation/constructors-and-destructors.html
@@ -1,6 +1,6 @@
<h1>Constructors and destructors</h1>
<p>
- There is a small but very important difference between constructor and
+ There is a small but very important difference between constructors and
destructors in C++, and the __construct() and __destruct() methods in PHP.
</p>
<p>
@@ -314,16 +314,16 @@ extern "C" {
In the code above we made the __construct() function of the Counter class
private. This makes it impossible to create instances of this class - both
from PHP user scripts, and via calls to Php::Object("Counter") - because
- constructing objects in this way will eventually also result in a __construct()
- call.
+ constructing objects in these ways will eventually result in a forbidden
+ __construct() call.
</p>
<p>
The Php::Object does have an alternative syntax that takes a pointer
- to a C++ class (allocated on the heap, with operator new!), and that turns
+ to a C++ class (allocated on the heap, with operator new!) and that turns
this pointer into a PHP variable without calling the
__construct() method. Notice that you must also specify the classname,
because C++ classes do not have any information about themselves (like their
- name), while in a PHP such information is required to handle reflection and
+ name), while in PHP such information is required to handle reflection and
functions like get_class().
</p>
<h2>Other magic methods</h2>
diff --git a/documentation/exceptions.html b/documentation/exceptions.html
new file mode 100644
index 0000000..6f65105
--- /dev/null
+++ b/documentation/exceptions.html
@@ -0,0 +1 @@
+<h1>Exceptions</h1> \ No newline at end of file
diff --git a/documentation/properties.html b/documentation/properties.html
new file mode 100644
index 0000000..050b7e1
--- /dev/null
+++ b/documentation/properties.html
@@ -0,0 +1 @@
+<h1>Object properties</h1> \ No newline at end of file