domlocator.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 domlocator
  28. *
  29. * URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Interfaces-DOMLocator
  30. * Since: DOM Level 3
  31. */
  32. const zend_function_entry php_dom_domlocator_class_functions[] = {
  33. PHP_FE_END
  34. };
  35. /* {{{ attribute protos, not implemented yet */
  36. /* {{{ line_number long
  37. readonly=yes
  38. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-line-number
  39. Since:
  40. */
  41. int dom_domlocator_line_number_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. /* {{{ column_number long
  49. readonly=yes
  50. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-column-number
  51. Since:
  52. */
  53. int dom_domlocator_column_number_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. /* {{{ offset long
  61. readonly=yes
  62. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-offset
  63. Since:
  64. */
  65. int dom_domlocator_offset_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. /* {{{ related_node node
  73. readonly=yes
  74. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-node
  75. Since:
  76. */
  77. int dom_domlocator_related_node_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. /* {{{ uri string
  85. readonly=yes
  86. URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMLocator-uri
  87. Since:
  88. */
  89. int dom_domlocator_uri_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. /* }}} */
  97. #endif
  98. /*
  99. * Local variables:
  100. * tab-width: 4
  101. * c-basic-offset: 4
  102. * End:
  103. * vim600: noet sw=4 ts=4 fdm=marker
  104. * vim<600: noet sw=4 ts=4
  105. */