Back to index

php5  5.3.10
domlocator.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: domlocator.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 
00031 /*
00032 * class domlocator 
00033 *
00034 * URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Interfaces-DOMLocator
00035 * Since: DOM Level 3
00036 */
00037 
00038 const zend_function_entry php_dom_domlocator_class_functions[] = {
00039        PHP_FE_END
00040 };
00041 
00042 /* {{{ attribute protos, not implemented yet */
00043 
00044 /* {{{ line_number   long   
00045 readonly=yes 
00046 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-line-number
00047 Since: 
00048 */
00049 int dom_domlocator_line_number_read(dom_object *obj, zval **retval TSRMLS_DC)
00050 {
00051        ALLOC_ZVAL(*retval);
00052        ZVAL_STRING(*retval, "TEST", 1);
00053        return SUCCESS;
00054 }
00055 
00056 /* }}} */
00057 
00058 /* {{{ column_number long   
00059 readonly=yes 
00060 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-column-number
00061 Since: 
00062 */
00063 int dom_domlocator_column_number_read(dom_object *obj, zval **retval TSRMLS_DC)
00064 {
00065        ALLOC_ZVAL(*retval);
00066        ZVAL_STRING(*retval, "TEST", 1);
00067        return SUCCESS;
00068 }
00069 
00070 /* }}} */
00071 
00072 /* {{{ offset long   
00073 readonly=yes 
00074 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-offset
00075 Since: 
00076 */
00077 int dom_domlocator_offset_read(dom_object *obj, zval **retval TSRMLS_DC)
00078 {
00079        ALLOC_ZVAL(*retval);
00080        ZVAL_STRING(*retval, "TEST", 1);
00081        return SUCCESS;
00082 }
00083 
00084 /* }}} */
00085 
00086 /* {{{ related_node  node   
00087 readonly=yes 
00088 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-node
00089 Since: 
00090 */
00091 int dom_domlocator_related_node_read(dom_object *obj, zval **retval TSRMLS_DC)
00092 {
00093        ALLOC_ZVAL(*retval);
00094        ZVAL_STRING(*retval, "TEST", 1);
00095        return SUCCESS;
00096 }
00097 
00098 /* }}} */
00099 
00100 /* {{{ uri    string 
00101 readonly=yes 
00102 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-uri
00103 Since: 
00104 */
00105 int dom_domlocator_uri_read(dom_object *obj, zval **retval TSRMLS_DC)
00106 {
00107        ALLOC_ZVAL(*retval);
00108        ZVAL_STRING(*retval, "TEST", 1);
00109        return SUCCESS;
00110 }
00111 
00112 /* }}} */
00113 
00114 /* }}} */
00115 
00116 #endif
00117 
00118 /*
00119  * Local variables:
00120  * tab-width: 4
00121  * c-basic-offset: 4
00122  * End:
00123  * vim600: noet sw=4 ts=4 fdm=marker
00124  * vim<600: noet sw=4 ts=4
00125  */