X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=master%2Fphp__propro__api_8h.html;fp=master%2Fphp__propro__api_8h.html;h=1919a075a220b7b517abf2351852909963a5181e;hb=25440bcce7a785032dbb7e9cc5e16cdc62ac18a8;hp=0000000000000000000000000000000000000000;hpb=ea5470824da8c22c682a187bdc62a906af18e33d;p=m6w6%2Fext-propro diff --git a/master/php__propro__api_8h.html b/master/php__propro__api_8h.html new file mode 100644 index 0000000..1919a07 --- /dev/null +++ b/master/php__propro__api_8h.html @@ -0,0 +1,466 @@ + + +
+ + + +
+ Property proxy API
+
+ A facility to manage extension object properties tied to C-struct members
+ |
+
#include "php_propro.h"
Go to the source code of this file.
++Data Structures | |
struct | php_property_proxy |
The internal property proxy. More... | |
struct | php_property_proxy_object |
The userland object. More... | |
+Typedefs | |
typedef struct php_property_proxy | php_property_proxy_t |
typedef struct php_property_proxy_object | php_property_proxy_object_t |
+Functions | |
php_property_proxy_t * | php_property_proxy_init (zval *container, zend_string *member) |
Create a property proxy. More... | |
void | php_property_proxy_free (php_property_proxy_t **proxy) |
Destroy and free a property proxy. More... | |
zend_class_entry * | php_property_proxy_get_class_entry (void) |
Get the zend_class_entry of php\PropertyProxy. More... | |
zend_object * | php_property_proxy_object_new (zend_class_entry *ce) |
Instantiate a new php\PropertyProxy. More... | |
php_property_proxy_object_t * | php_property_proxy_object_new_ex (zend_class_entry *ce, php_property_proxy_t *proxy) |
Instantiate a new php\PropertyProxy with proxy. More... | |
struct php_property_proxy | +
struct php_property_proxy_object | +
The userland object.
+Return an object instance of php\PropertyProxy to make your C-struct member accessible by reference from PHP userland.
+Example:
Data Fields | ||
---|---|---|
+zval | ++parent | ++Any parent property proxy object. |
+php_property_proxy_t * | ++proxy | ++The actual property proxy. |
+zend_object | ++zo | ++The std zend_object. |
typedef struct php_property_proxy_object php_property_proxy_object_t | +
typedef struct php_property_proxy php_property_proxy_t | +
void php_property_proxy_free | +( | +php_property_proxy_t ** | +proxy | ) | ++ |
Destroy and free a property proxy.
+The destruction of the property proxy object calls this.
+proxy | a pointer to the allocated property proxy |
zend_class_entry* php_property_proxy_get_class_entry | +( | +void | +) | ++ |
Get the zend_class_entry of php\PropertyProxy.
+php_property_proxy_t* php_property_proxy_init | +( | +zval * | +container, | +
+ | + | zend_string * | +member | +
+ | ) | ++ |
Create a property proxy.
+The property proxy will forward reads and writes to itself to the proxied property with name member_str of container.
+container | the container holding the property |
member | the name of the proxied property |
zend_object* php_property_proxy_object_new | +( | +zend_class_entry * | +ce | ) | ++ |
Instantiate a new php\PropertyProxy.
+ce | the property proxy or derived class entry |
php_property_proxy_object_t* php_property_proxy_object_new_ex | +( | +zend_class_entry * | +ce, | +
+ | + | php_property_proxy_t * | +proxy | +
+ | ) | ++ |
Instantiate a new php\PropertyProxy with proxy.
+ce | the property proxy or derived class entry |
proxy | the internal property proxy |
Referenced by php_property_proxy_object_new().
+ +