Back to index

php5  5.3.10
namelist.c
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Christian Stocker <chregu@php.net>                          |
00016    |          Rob Richards <rrichards@php.net>                            |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: namelist.c 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifdef HAVE_CONFIG_H
00023 #include "config.h"
00024 #endif
00025 
00026 #include "php.h"
00027 #if HAVE_LIBXML && HAVE_DOM
00028 #include "php_dom.h"
00029 
00030 /* {{{ arginfo */
00031 ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_name, 0, 0, 1)
00032        ZEND_ARG_INFO(0, index)
00033 ZEND_END_ARG_INFO();
00034 
00035 ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_namelist_get_namespace_uri, 0, 0, 1)
00036        ZEND_ARG_INFO(0, index)
00037 ZEND_END_ARG_INFO();
00038 /* }}} */
00039 
00040 /*
00041 * class DOMNameList 
00042 *
00043 * URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList
00044 * Since: DOM Level 3
00045 */
00046 
00047 const zend_function_entry php_dom_namelist_class_functions[] = {
00048        PHP_FALIAS(getName, dom_namelist_get_name, arginfo_dom_namelist_get_name)
00049        PHP_FALIAS(getNamespaceURI, dom_namelist_get_namespace_uri, arginfo_dom_namelist_get_namespace_uri)
00050        PHP_FE_END
00051 };
00052 
00053 /* {{{ length int    
00054 readonly=yes 
00055 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-length
00056 Since: 
00057 */
00058 int dom_namelist_length_read(dom_object *obj, zval **retval TSRMLS_DC)
00059 {
00060        ALLOC_ZVAL(*retval);
00061        ZVAL_STRING(*retval, "TEST", 1);
00062        return SUCCESS;
00063 }
00064 
00065 /* }}} */
00066 
00067 /* {{{ proto string dom_namelist_get_name(int index);
00068 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName
00069 Since: 
00070 */
00071 PHP_FUNCTION(dom_namelist_get_name)
00072 {
00073  DOM_NOT_IMPLEMENTED();
00074 }
00075 /* }}} end dom_namelist_get_name */
00076 
00077 /* {{{ proto string dom_namelist_get_namespace_uri(int index);
00078 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI
00079 Since: 
00080 */
00081 PHP_FUNCTION(dom_namelist_get_namespace_uri)
00082 {
00083  DOM_NOT_IMPLEMENTED();
00084 }
00085 /* }}} end dom_namelist_get_namespace_uri */
00086 
00087 #endif
00088 
00089 /*
00090  * Local variables:
00091  * tab-width: 4
00092  * c-basic-offset: 4
00093  * End:
00094  * vim600: noet sw=4 ts=4 fdm=marker
00095  * vim<600: noet sw=4 ts=4
00096  */