Back to index

php5  5.3.10
domerror.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: domerror.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 domerror 
00033 *
00034 * URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-Interfaces-DOMError
00035 * Since: DOM Level 3
00036 */
00037 
00038 const zend_function_entry php_dom_domerror_class_functions[] = {
00039        PHP_FE_END
00040 };
00041 
00042 /* {{{ attribute protos, not implemented yet */
00043 
00044 /* {{{ severity      unsigned short       
00045 readonly=yes 
00046 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-severity
00047 Since: 
00048 */
00049 int dom_domerror_severity_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 /* {{{ message       string 
00059 readonly=yes 
00060 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-message
00061 Since: 
00062 */
00063 int dom_domerror_message_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 /* {{{ type   string 
00073 readonly=yes 
00074 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-type
00075 Since: 
00076 */
00077 int dom_domerror_type_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 /* {{{ relatedException     object 
00087 readonly=yes 
00088 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedException
00089 Since: 
00090 */
00091 int dom_domerror_related_exception_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 /* {{{ relatedData   domobject     
00101 readonly=yes 
00102 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedData
00103 Since: 
00104 */
00105 int dom_domerror_related_data_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 /* {{{ location      domlocator    
00115 readonly=yes 
00116 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-location
00117 Since: 
00118 */
00119 int dom_domerror_location_read(dom_object *obj, zval **retval TSRMLS_DC)
00120 {
00121        ALLOC_ZVAL(*retval);
00122        ZVAL_STRING(*retval, "TEST", 1);
00123        return SUCCESS;
00124 }
00125 
00126 /* }}} */
00127 
00128 /* }}} */
00129 
00130 #endif
00131 
00132 /*
00133  * Local variables:
00134  * tab-width: 4
00135  * c-basic-offset: 4
00136  * End:
00137  * vim600: noet sw=4 ts=4 fdm=marker
00138  * vim<600: noet sw=4 ts=4
00139  */