From 9111e1d4c1052f15edd4c258fbc8386dd6cac231 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 12 Mar 2014 17:06:48 +0100 Subject: small documentation changes --- documentation/classes-and-objects.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/classes-and-objects.html b/documentation/classes-and-objects.html index eddb7b1..3fd8811 100644 --- a/documentation/classes-and-objects.html +++ b/documentation/classes-and-objects.html @@ -95,7 +95,7 @@ extern "C" {

If you want to make a class method accessible from PHP, you must ensure that it matches one of the supported signatures. These are essentially - the same signatures as exportable plain functions, + the same signatures as exportable plain functions can have, but with versions for const and non-const methods.

@@ -125,11 +125,11 @@ Php::Value YourClass::example8(Php::Parameters &params) const;

The Php::Class constructor needs a string parameter, with the name of - the class in PHP. The method Php::Class::method() can then be, as you can + the class in PHP. The method Php::Class::method() can then be used, as you can see in the example above, to register methods that you want to make accessible from PHP. Did you see that in the example we used the C++11 std::move() function to add the class to the extension? This will actually move the class - obect into the extension, which is a more efficient operation than copying. + object into the extension, which is a more efficient operation than copying.

Method parameters

-- cgit v1.2.3