using Zend: extensions module: Accessing instance data internally
| From: | O'Neil Delpratt | Date: | Thu, 06 Mar 2014 16:12:07 +0000 |
| Subject: | using Zend: extensions module: Accessing instance data internally | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-72979@lists.php.net to get a copy of this message | ||
Hi,
I have two created two php objects in my extension module called SaxonProcessor and XdmValue:
struct saxonProcessor_object {
zend_object std;
SaxonProcessor * saxonProcessor;
XsltProcessor *xsltProcessor;
XQueryProcessor *xqueryProcessor;
XdmValue * xdmValue;
char * stylesheetFile;
char * stylesheetStr;
char * queryFile;
char * queryStr;
};
struct xdmValue_object {
zend_object std;
XdmValue * xdmValue;
};
In the XdmValue_object I need to pass internally the C++ SaxonProcessor object in the saxonProcessor_object, but I am not sure how to do this because in the XdmValue constructor the getThis() method allows me to gain access to the xdmValue_object struct:
xdmValue_object *obj = (xdmValue_object *)zend_object_store_get_object(
getThis() TSRMLS_CC);Any ideas? -- O'Neil Delpratt Software Developer, Saxonica Limited Email: oneil@saxonica.com <mailto:oneil@saxonica.com> Tel: +44 118 946 5894 Web: http://www.saxonica.com Saxonica Community Site: http://dev.saxonica.com Saxonica Bug tracking System: https://saxonica.plan.io/