1 /* 2 +----------------------------------------------------------------------+ 3 | Zend Engine | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 2.00 of the Zend license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.zend.com/license/2_00.txt. | 11 | If you did not receive a copy of the Zend license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@zend.com so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Ilija Tovilo <ilutov@php.net> | 16 +----------------------------------------------------------------------+ 17 */ 18 19 #ifndef ZEND_PROPERTY_HOOKS_H 20 #define ZEND_PROPERTY_HOOKS_H 21 22 #include "zend_portability.h" 23 24 BEGIN_EXTERN_C() 25 26 typedef struct _zend_array zend_array; 27 typedef struct _zend_class_entry zend_class_entry; 28 typedef struct _zend_object zend_object; 29 typedef struct _zend_object_iterator zend_object_iterator; 30 typedef struct _zval_struct zval; 31 32 typedef enum { 33 ZEND_PROPERTY_HOOK_GET = 0, 34 ZEND_PROPERTY_HOOK_SET = 1, 35 } zend_property_hook_kind; 36 37 ZEND_API zend_object_iterator *zend_hooked_object_get_iterator(zend_class_entry *ce, zval *object, int by_ref); 38 ZEND_API zend_array *zend_hooked_object_build_properties(zend_object *zobj); 39 40 END_EXTERN_C() 41 42 #endif /* ZEND_PROPERTY_HOOKS_H */ 43