domerror.c 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 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. /* $Id$ */
  20. #ifdef HAVE_CONFIG_H
  21. #include "config.h"
  22. #endif
  23. #include "php.h"
  24. #if HAVE_LIBXML && HAVE_DOM
  25. #include "php_dom.h"
  26. /*
  27. * class domerror
  28. *
  29. * URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-Interfaces-DOMError
  30. * Since: DOM Level 3
  31. */
  32. const zend_function_entry php_dom_domerror_class_functions[] = {
  33. PHP_FE_END
  34. };
  35. /* {{{ attribute protos, not implemented yet */
  36. /* {{{ severity unsigned short
  37. readonly=yes
  38. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-severity
  39. Since:
  40. */
  41. int dom_domerror_severity_read(dom_object *obj, zval **retval TSRMLS_DC)
  42. {
  43. ALLOC_ZVAL(*retval);
  44. ZVAL_STRING(*retval, "TEST", 1);
  45. return SUCCESS;
  46. }
  47. /* }}} */
  48. /* {{{ message string
  49. readonly=yes
  50. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-message
  51. Since:
  52. */
  53. int dom_domerror_message_read(dom_object *obj, zval **retval TSRMLS_DC)
  54. {
  55. ALLOC_ZVAL(*retval);
  56. ZVAL_STRING(*retval, "TEST", 1);
  57. return SUCCESS;
  58. }
  59. /* }}} */
  60. /* {{{ type string
  61. readonly=yes
  62. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-type
  63. Since:
  64. */
  65. int dom_domerror_type_read(dom_object *obj, zval **retval TSRMLS_DC)
  66. {
  67. ALLOC_ZVAL(*retval);
  68. ZVAL_STRING(*retval, "TEST", 1);
  69. return SUCCESS;
  70. }
  71. /* }}} */
  72. /* {{{ relatedException object
  73. readonly=yes
  74. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedException
  75. Since:
  76. */
  77. int dom_domerror_related_exception_read(dom_object *obj, zval **retval TSRMLS_DC)
  78. {
  79. ALLOC_ZVAL(*retval);
  80. ZVAL_STRING(*retval, "TEST", 1);
  81. return SUCCESS;
  82. }
  83. /* }}} */
  84. /* {{{ relatedData domobject
  85. readonly=yes
  86. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-relatedData
  87. Since:
  88. */
  89. int dom_domerror_related_data_read(dom_object *obj, zval **retval TSRMLS_DC)
  90. {
  91. ALLOC_ZVAL(*retval);
  92. ZVAL_STRING(*retval, "TEST", 1);
  93. return SUCCESS;
  94. }
  95. /* }}} */
  96. /* {{{ location domlocator
  97. readonly=yes
  98. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ERROR-DOMError-location
  99. Since:
  100. */
  101. int dom_domerror_location_read(dom_object *obj, zval **retval TSRMLS_DC)
  102. {
  103. ALLOC_ZVAL(*retval);
  104. ZVAL_STRING(*retval, "TEST", 1);
  105. return SUCCESS;
  106. }
  107. /* }}} */
  108. /* }}} */
  109. #endif
  110. /*
  111. * Local variables:
  112. * tab-width: 4
  113. * c-basic-offset: 4
  114. * End:
  115. * vim600: noet sw=4 ts=4 fdm=marker
  116. * vim<600: noet sw=4 ts=4
  117. */