diff options
author | Sebastian Bergmann <sebastian@php.net> | 2008-01-29 15:55:23 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2008-01-29 15:55:23 +0000 |
commit | c08da2a66de6f9c07540ecf75e140b3707678021 (patch) | |
tree | 5df4d9dff5ac6736a8504a8449049565f48bb3db /ext/dom/xpath.c | |
parent | 8b87b2b12b288a5178d724da98aaf1342c1db362 (diff) | |
download | php-git-c08da2a66de6f9c07540ecf75e140b3707678021.tar.gz |
MFH: Add Reflection API metadata for DOMXPath.
Diffstat (limited to 'ext/dom/xpath.c')
-rw-r--r-- | ext/dom/xpath.c | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c index 3f14580e41..9fa2b30091 100644 --- a/ext/dom/xpath.c +++ b/ext/dom/xpath.c @@ -36,12 +36,41 @@ #if defined(LIBXML_XPATH_ENABLED) +/* {{{ arginfo */ +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_xpath_construct, 0, 0, 1) + ZEND_ARG_OBJ_INFO(0, doc, DOMDocument, 0) +ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_xpath_register_ns, 0, 0, 2) + ZEND_ARG_INFO(0, prefix) + ZEND_ARG_INFO(0, uri) +ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_xpath_query, 0, 0, 1) + ZEND_ARG_INFO(0, expr) + ZEND_ARG_OBJ_INFO(0, context, DOMNode, 0) +ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_xpath_evaluate, 0, 0, 1) + ZEND_ARG_INFO(0, expr) + ZEND_ARG_OBJ_INFO(0, context, DOMNode, 0) +ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_xpath_register_php_functions, 0, 0, 0) +ZEND_END_ARG_INFO(); +/* }}} */ + const zend_function_entry php_dom_xpath_class_functions[] = { - PHP_ME(domxpath, __construct, NULL, ZEND_ACC_PUBLIC) - PHP_FALIAS(registerNamespace, dom_xpath_register_ns, NULL) - PHP_FALIAS(query, dom_xpath_query, NULL) - PHP_FALIAS(evaluate, dom_xpath_evaluate, NULL) - PHP_FALIAS(registerPhpFunctions, dom_xpath_register_php_functions, NULL) + PHP_ME(domxpath, __construct, arginfo_dom_xpath_construct, ZEND_ACC_PUBLIC) + PHP_FALIAS(registerNamespace, dom_xpath_register_ns, arginfo_dom_xpath_register_ns) + PHP_FALIAS(query, dom_xpath_query, arginfo_dom_xpath_query) + PHP_FALIAS(evaluate, dom_xpath_evaluate, arginfo_dom_xpath_evaluate) + PHP_FALIAS(registerPhpFunctions, dom_xpath_register_php_functions, arginfo_dom_xpath_register_php_functions) {NULL, NULL, NULL} }; |