From 4d99a9536483dc27b7bdb4366aacb85ee34b5290 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sat, 8 Mar 2014 21:32:53 +0100 Subject: documentation changes --- documentation/extension-lifetime.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'documentation') diff --git a/documentation/extension-lifetime.html b/documentation/extension-lifetime.html index 4e872cf..2c590e3 100644 --- a/documentation/extension-lifetime.html +++ b/documentation/extension-lifetime.html @@ -14,7 +14,7 @@ This difference is especially important if you use global C++ variables. Such global variables are initialized when the extension is loaded - and not at the beginning of each pageview. Changes that you make to global variables keep - their value, and subsequent requests will therefore see this updated value. + their value, and subsequent requests will therefore see the updated values.

This, by the way, only happens to native variables. Global PHP variables, @@ -94,13 +94,13 @@ extern "C" {

The Php::Extension class has a method onRequest() that is used in the above example to register a callback function. This callback is called right - before every pageview/request. As you can see in the example, it is - permitted to use lambda functions. In the above example the global variable - invokeDuringRequestCount is re-initialized. + before every pageview/request. And as you can see, it is + permitted to use lambda functions.

- The onRequest() is not the only callback that can be registered. There are - four different callbacks on*() methods that you can call to register callbacks. + The onRequest() is not the only method in the Php::Extension object to + register a callback. There are in fact + four different callbacks on*() methods that you can use.