diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 12:00:11 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 12:00:11 +0100 |
commit | 41bd759f31d625b5f73dd3a31d76a91efbde8ad7 (patch) | |
tree | b995cc0c295c031c6cf130fe0f4f51b286a0511e /Examples | |
parent | 52fe0c39457421e075959179ee6b64a20b96f0d9 (diff) |
working implementation for Base::value()
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/CppClassesInPhp/cppclassinphp.cpp | 3 | ||||
-rw-r--r-- | Examples/CppClassesInPhp/cppclassinphp.php | 8 |
2 files changed, 2 insertions, 9 deletions
diff --git a/Examples/CppClassesInPhp/cppclassinphp.cpp b/Examples/CppClassesInPhp/cppclassinphp.cpp index 23f86bf..741a44d 100644 --- a/Examples/CppClassesInPhp/cppclassinphp.cpp +++ b/Examples/CppClassesInPhp/cppclassinphp.cpp @@ -46,6 +46,8 @@ public: std::cout << "myMethod is called." << std::endl; _x = params[0]; + + std::cout << "get property1 " << value()["property1"] << std::endl; } }; @@ -76,7 +78,6 @@ extern "C" customClass.method("myMethod2", &MyCustomClass::myMethod); customClass.property("property1", "prop1"); customClass.property("property2", "prop2", Php::Protected); - customClass.method("myAbstract"); // add the class to the extension extension.add(customClass); diff --git a/Examples/CppClassesInPhp/cppclassinphp.php b/Examples/CppClassesInPhp/cppclassinphp.php index c2076d3..7c06675 100644 --- a/Examples/CppClassesInPhp/cppclassinphp.php +++ b/Examples/CppClassesInPhp/cppclassinphp.php @@ -9,14 +9,6 @@ //create a MyCustomClass object, which is an object of a C++ class $object = new MyClass(); -class ImplementedInterface implements MyInterface -{ -} - -$object2 = new ImplementedInterface(); - -return; - // run a function of the class $object->myMethod(1); |