summaryrefslogtreecommitdiff
path: root/documentation/magic-methods.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 10:50:56 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 10:50:56 +0100
commitd724e346b28df9907a2ec115d20416944ea10d8a (patch)
treed9ff51e81c8ca5c77e53865a190eac999cc94556 /documentation/magic-methods.html
parent3bb0e31416994b0a36b784c8278b1c5f33999b1d (diff)
added id to all h2 tags to make it possible to link to specific sections, update documentation about serializable, fixed compile error for serialize implementation
Diffstat (limited to 'documentation/magic-methods.html')
-rw-r--r--documentation/magic-methods.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/magic-methods.html b/documentation/magic-methods.html
index 0e7b61f..ed7dd3b 100644
--- a/documentation/magic-methods.html
+++ b/documentation/magic-methods.html
@@ -17,7 +17,7 @@
can not be called explicitly from PHP scripts - but they do get called
when a property is accessed.
</p>
-<h2>Pseudo properties</h2>
+<h2 id="pseudo-properties">Pseudo properties</h2>
<p>
With the methods __get(), __set(), __unset() and __isset() you can define
pseudo properties. It allows you to, for example, create read-only properties,
@@ -192,7 +192,7 @@ unset($user->email);
?&gt;
</code></pre>
</p>
-<h2>Magic methods __call() and __invoke()</h2>
+<h2 id="call-and-invoke">Magic methods __call() and __invoke()</h2>
<p>
C++ methods need to be registered explicitly in your extension get_module()
startup function to be accessible from PHP user space. However, when you override the __call()
@@ -344,7 +344,7 @@ whatever a b
invoke parameter passed to invoke
</pre>
</p>
-<h2>Casting methods (__toString and more)</h2>
+<h2 id="casting">Casting methods (__toString and more)</h2>
<p>
In PHP you can add a __toString() method to a class. This method is automatically
called when an object is casted to a string, or when an object is used in a string