xref: /PHP-7.3/ext/dom/namelist.c (revision 8d3f8ca1)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP 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.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Christian Stocker <chregu@php.net>                          |
16    |          Rob Richards <rrichards@php.net>                            |
17    +----------------------------------------------------------------------+
18 */
19 
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23 
24 #include "php.h"
25 #if HAVE_LIBXML && HAVE_DOM
26 #include "php_dom.h"
27 
28 /* {{{ arginfo */
29 ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_name, 0, 0, 1)
30 	ZEND_ARG_INFO(0, index)
31 ZEND_END_ARG_INFO();
32 
33 ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_namespace_uri, 0, 0, 1)
34 	ZEND_ARG_INFO(0, index)
35 ZEND_END_ARG_INFO();
36 /* }}} */
37 
38 /*
39 * class DOMNameList
40 *
41 * URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList
42 * Since: DOM Level 3
43 */
44 
45 const zend_function_entry php_dom_namelist_class_functions[] = {
46 	PHP_FALIAS(getName, dom_namelist_get_name, arginfo_dom_namelist_get_name)
47 	PHP_FALIAS(getNamespaceURI, dom_namelist_get_namespace_uri, arginfo_dom_namelist_get_namespace_uri)
48 	PHP_FE_END
49 };
50 
51 /* {{{ length	int
52 readonly=yes
53 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-length
54 Since:
55 */
dom_namelist_length_read(dom_object * obj,zval * retval)56 int dom_namelist_length_read(dom_object *obj, zval *retval)
57 {
58 	ZVAL_STRING(retval, "TEST");
59 	return SUCCESS;
60 }
61 
62 /* }}} */
63 
64 /* {{{ proto string dom_namelist_get_name(int index);
65 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName
66 Since:
67 */
PHP_FUNCTION(dom_namelist_get_name)68 PHP_FUNCTION(dom_namelist_get_name)
69 {
70  DOM_NOT_IMPLEMENTED();
71 }
72 /* }}} end dom_namelist_get_name */
73 
74 /* {{{ proto string dom_namelist_get_namespace_uri(int index);
75 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI
76 Since:
77 */
PHP_FUNCTION(dom_namelist_get_namespace_uri)78 PHP_FUNCTION(dom_namelist_get_namespace_uri)
79 {
80  DOM_NOT_IMPLEMENTED();
81 }
82 /* }}} end dom_namelist_get_namespace_uri */
83 
84 #endif
85 
86 /*
87  * Local variables:
88  * tab-width: 4
89  * c-basic-offset: 4
90  * End:
91  * vim600: noet sw=4 ts=4 fdm=marker
92  * vim<600: noet sw=4 ts=4
93  */
94