Back to index

php5  5.3.10
Classes | Defines | Typedefs | Functions | Variables
xml_common.h File Reference
#include "ext/libxml/php_libxml.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _dom_object

Defines

#define PHP_DOM_EXPORT   PHPAPI
#define DOM_XMLNS_NAMESPACE   (const xmlChar *) "http://www.w3.org/2000/xmlns/"
#define NODE_GET_OBJ(__ptr, __id, __prtype, __intern)
#define DOC_GET_OBJ(__ptr, __id, __prtype, __intern)
#define DOM_RET_OBJ_EX(obj, ret, domobject)
#define DOM_RET_OBJ(zval, obj, ret, domobject)   DOM_RET_OBJ_EX(obj, ret, domobject)
#define DOM_GET_THIS(zval)
#define DOM_GET_THIS_OBJ(__ptr, __id, __prtype, __intern)

Typedefs

typedef libxml_doc_props * dom_doc_propsptr
typedef struct _dom_object dom_object

Functions

PHP_DOM_EXPORT dom_objectphp_dom_object_get_data (xmlNodePtr obj)
PHP_DOM_EXPORT zval * php_dom_create_object (xmlNodePtr obj, int *found, zval *in, zval *return_value, dom_object *domobj TSRMLS_DC)
PHP_DOM_EXPORT xmlNodePtr dom_object_get_node (dom_object *obj)

Variables

PHP_DOM_EXPORT zend_class_entry * dom_node_class_entry

Class Documentation

struct _dom_object

Definition at line 29 of file xml_common.h.

Collaboration diagram for _dom_object:
Class Members
php_libxml_ref_obj * document
zend_object_handle handle
HashTable * prop_handler
void * ptr
zend_object std

Define Documentation

#define DOC_GET_OBJ (   __ptr,
  __id,
  __prtype,
  __intern 
)
Value:
{ \
       __intern = (php_libxml_node_object *)zend_object_store_get_object(__id TSRMLS_CC); \
       if (__intern->document != NULL) { \
              if (!(__ptr = (__prtype)__intern->document->ptr)) { \
                     php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", __intern->std.ce->name);\
                     RETURN_NULL();\
              } \
       } \
}

Definition at line 71 of file xml_common.h.

#define DOM_GET_THIS (   zval)
Value:
if (NULL == (zval = getThis())) { \
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Underlying object missing"); \
              RETURN_FALSE; \
       }

Definition at line 89 of file xml_common.h.

#define DOM_GET_THIS_OBJ (   __ptr,
  __id,
  __prtype,
  __intern 
)
Value:
DOM_GET_THIS(__id); \
       DOM_GET_OBJ(__ptr, __id, __prtype, __intern);

Definition at line 95 of file xml_common.h.

#define DOM_RET_OBJ (   zval,
  obj,
  ret,
  domobject 
)    DOM_RET_OBJ_EX(obj, ret, domobject)

Definition at line 87 of file xml_common.h.

#define DOM_RET_OBJ_EX (   obj,
  ret,
  domobject 
)
Value:
if (!php_dom_create_object(obj, ret, NULL, return_value, domobject TSRMLS_CC)) { \
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create required DOM object"); \
              RETURN_FALSE; \
       }

Definition at line 81 of file xml_common.h.

#define DOM_XMLNS_NAMESPACE   (const xmlChar *) "http://www.w3.org/2000/xmlns/"

Definition at line 60 of file xml_common.h.

#define NODE_GET_OBJ (   __ptr,
  __id,
  __prtype,
  __intern 
)
Value:
{ \
       __intern = (php_libxml_node_object *)zend_object_store_get_object(__id TSRMLS_CC); \
       if (__intern->node == NULL || !(__ptr = (__prtype)__intern->node->node)) { \
              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", __intern->std.ce->name);\
              RETURN_NULL();\
       } \
}

Definition at line 63 of file xml_common.h.

#define PHP_DOM_EXPORT   PHPAPI

Definition at line 53 of file xml_common.h.


Typedef Documentation

typedef libxml_doc_props* dom_doc_propsptr

Definition at line 27 of file xml_common.h.

typedef struct _dom_object dom_object

Function Documentation

Here is the caller graph for this function:

PHP_DOM_EXPORT zval* php_dom_create_object ( xmlNodePtr  obj,
int found,
zval *  in,
zval *  return_value,
dom_object *domobj  TSRMLS_DC 
)

Here is the caller graph for this function:


Variable Documentation