diff options
author | Rob Richards <rrichards@php.net> | 2003-06-05 17:06:52 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2003-06-05 17:06:52 +0000 |
commit | 1b046ed40e63315c11c4e44254efdee4b7b95563 (patch) | |
tree | fe91b48932c170f02742a4e130d21468c2bf1199 /ext/dom/namednodemap.c | |
parent | bf0e2751bb62a97a0dd1a1edddcaca03f5949753 (diff) | |
download | php-git-1b046ed40e63315c11c4e44254efdee4b7b95563.tar.gz |
Inital cut of new dom extension
PHP5 only
Diffstat (limited to 'ext/dom/namednodemap.c')
-rw-r--r-- | ext/dom/namednodemap.c | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c new file mode 100644 index 0000000000..27aed13f4a --- /dev/null +++ b/ext/dom/namednodemap.c @@ -0,0 +1,141 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 4 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2003 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.02 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.php.net/license/2_02.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Christian Stocker <chregu@php.net> | + | Rob Richards <rrichards@php.net> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "php.h" +#include "php_dom.h" + + +/* +* class domnamednodemap +* +* URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1780488922 +* Since: +*/ + +zend_function_entry php_dom_namednodemap_class_functions[] = { + PHP_FALIAS(getNamedItem, dom_namednodemap_get_named_item, NULL) + PHP_FALIAS(setNamedItem, dom_namednodemap_set_named_item, NULL) + PHP_FALIAS(removeNamedItem, dom_namednodemap_remove_named_item, NULL) + PHP_FALIAS(item, dom_namednodemap_item, NULL) + PHP_FALIAS(getNamedItemNS, dom_namednodemap_get_named_item_ns, NULL) + PHP_FALIAS(setNamedItemNS, dom_namednodemap_set_named_item_ns, NULL) + PHP_FALIAS(removeNamedItemNS, dom_namednodemap_remove_named_item_ns, NULL) + {NULL, NULL, NULL} +}; + +/* {{{ attribute protos, not implemented yet */ + +/* {{{ proto length unsigned long +readonly=yes +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-6D0FB19E +Since: +*/ +int dom_namednodemap_length_read(dom_object *obj, zval **retval TSRMLS_DC) +{ + ALLOC_ZVAL(*retval); + ZVAL_STRING(*retval, "TEST", 1); + return SUCCESS; +} + +/* }}} */ + + + + +/* {{{ proto domnode dom_namednodemap_get_named_item(string name); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1074577549 +Since: +*/ +PHP_FUNCTION(dom_namednodemap_get_named_item) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_get_named_item */ + + +/* {{{ proto domnode dom_namednodemap_set_named_item(node arg); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1025163788 +Since: +*/ +PHP_FUNCTION(dom_namednodemap_set_named_item) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_set_named_item */ + + +/* {{{ proto domnode dom_namednodemap_remove_named_item(string name); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D58B193 +Since: +*/ +PHP_FUNCTION(dom_namednodemap_remove_named_item) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_remove_named_item */ + + +/* {{{ proto domnode dom_namednodemap_item(unsigned long index); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-349467F9 +Since: +*/ +PHP_FUNCTION(dom_namednodemap_item) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_item */ + + +/* {{{ proto domnode dom_namednodemap_get_named_item_ns(string namespaceURI, string localName); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getNamedItemNS +Since: DOM Level 2 +*/ +PHP_FUNCTION(dom_namednodemap_get_named_item_ns) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_get_named_item_ns */ + + +/* {{{ proto domnode dom_namednodemap_set_named_item_ns(node arg); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-setNamedItemNS +Since: DOM Level 2 +*/ +PHP_FUNCTION(dom_namednodemap_set_named_item_ns) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_set_named_item_ns */ + + +/* {{{ proto domnode dom_namednodemap_remove_named_item_ns(string namespaceURI, string localName); +URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-removeNamedItemNS +Since: DOM Level 2 +*/ +PHP_FUNCTION(dom_namednodemap_remove_named_item_ns) +{ + DOM_NOT_IMPLEMENTED(); +} +/* }}} end dom_namednodemap_remove_named_item_ns */ |