@@ -46,40 +46,40 @@ struct _idsIterator {
46
46
*/
47
47
48
48
const zend_function_entry php_dom_document_class_functions [] = { /* {{{ */
49
- PHP_FALIAS ( createElement , dom_document_create_element , arginfo_class_DOMDocument_createElement )
50
- PHP_FALIAS ( createDocumentFragment , dom_document_create_document_fragment , arginfo_class_DOMDocument_createDocumentFragment )
51
- PHP_FALIAS ( createTextNode , dom_document_create_text_node , arginfo_class_DOMDocument_createTextNode )
52
- PHP_FALIAS ( createComment , dom_document_create_comment , arginfo_class_DOMDocument_createComment )
53
- PHP_FALIAS ( createCDATASection , dom_document_create_cdatasection , arginfo_class_DOMDocument_createCDATASection )
54
- PHP_FALIAS ( createProcessingInstruction , dom_document_create_processing_instruction , arginfo_class_DOMDocument_createProcessingInstruction )
55
- PHP_FALIAS ( createAttribute , dom_document_create_attribute , arginfo_class_DOMDocument_createAttribute )
56
- PHP_FALIAS ( createEntityReference , dom_document_create_entity_reference , arginfo_class_DOMDocument_createEntityReference )
57
- PHP_FALIAS ( getElementsByTagName , dom_document_get_elements_by_tag_name , arginfo_class_DOMDocument_getElementsByTagName )
58
- PHP_FALIAS ( importNode , dom_document_import_node , arginfo_class_DOMDocument_importNode )
59
- PHP_FALIAS ( createElementNS , dom_document_create_element_ns , arginfo_class_DOMDocument_createElementNS )
60
- PHP_FALIAS ( createAttributeNS , dom_document_create_attribute_ns , arginfo_class_DOMDocument_createAttributeNS )
61
- PHP_FALIAS ( getElementsByTagNameNS , dom_document_get_elements_by_tag_name_ns , arginfo_class_DOMDocument_getElementsByTagNameNS )
62
- PHP_FALIAS ( getElementById , dom_document_get_element_by_id , arginfo_class_DOMDocument_getElementById )
63
- PHP_FALIAS ( adoptNode , dom_document_adopt_node , arginfo_class_DOMDocument_adoptNode )
64
- PHP_FALIAS ( normalizeDocument , dom_document_normalize_document , arginfo_class_DOMDocument_normalizeDocument )
49
+ PHP_ME ( domdocument , createElement , arginfo_class_DOMDocument_createElement , ZEND_ACC_PUBLIC )
50
+ PHP_ME ( domdocument , createDocumentFragment , arginfo_class_DOMDocument_createDocumentFragment , ZEND_ACC_PUBLIC )
51
+ PHP_ME ( domdocument , createTextNode , arginfo_class_DOMDocument_createTextNode , ZEND_ACC_PUBLIC )
52
+ PHP_ME ( domdocument , createComment , arginfo_class_DOMDocument_createComment , ZEND_ACC_PUBLIC )
53
+ PHP_ME ( domdocument , createCDATASection , arginfo_class_DOMDocument_createCDATASection , ZEND_ACC_PUBLIC )
54
+ PHP_ME ( domdocument , createProcessingInstruction , arginfo_class_DOMDocument_createProcessingInstruction , ZEND_ACC_PUBLIC )
55
+ PHP_ME ( domdocument , createAttribute , arginfo_class_DOMDocument_createAttribute , ZEND_ACC_PUBLIC )
56
+ PHP_ME ( domdocument , createEntityReference , arginfo_class_DOMDocument_createEntityReference , ZEND_ACC_PUBLIC )
57
+ PHP_ME ( domdocument , getElementsByTagName , arginfo_class_DOMDocument_getElementsByTagName , ZEND_ACC_PUBLIC )
58
+ PHP_ME ( domdocument , importNode , arginfo_class_DOMDocument_importNode , ZEND_ACC_PUBLIC )
59
+ PHP_ME ( domdocument , createElementNS , arginfo_class_DOMDocument_createElementNS , ZEND_ACC_PUBLIC )
60
+ PHP_ME ( domdocument , createAttributeNS , arginfo_class_DOMDocument_createAttributeNS , ZEND_ACC_PUBLIC )
61
+ PHP_ME ( domdocument , getElementsByTagNameNS , arginfo_class_DOMDocument_getElementsByTagNameNS , ZEND_ACC_PUBLIC )
62
+ PHP_ME ( domdocument , getElementById , arginfo_class_DOMDocument_getElementById , ZEND_ACC_PUBLIC )
63
+ PHP_ME ( domdocument , adoptNode , arginfo_class_DOMDocument_adoptNode , ZEND_ACC_PUBLIC )
64
+ PHP_ME ( domdocument , normalizeDocument , arginfo_class_DOMDocument_normalizeDocument , ZEND_ACC_PUBLIC )
65
65
PHP_ME (domdocument , load , arginfo_class_DOMDocument_load , ZEND_ACC_PUBLIC )
66
- PHP_FALIAS ( save , dom_document_save , arginfo_class_DOMDocument_save )
66
+ PHP_ME ( domdocument , save , arginfo_class_DOMDocument_save , ZEND_ACC_PUBLIC )
67
67
PHP_ME (domdocument , loadXML , arginfo_class_DOMDocument_loadXML , ZEND_ACC_PUBLIC )
68
- PHP_FALIAS ( saveXML , dom_document_savexml , arginfo_class_DOMDocument_saveXML )
68
+ PHP_ME ( domdocument , saveXML , arginfo_class_DOMDocument_saveXML , ZEND_ACC_PUBLIC )
69
69
PHP_ME (domdocument , __construct , arginfo_class_DOMDocument___construct , ZEND_ACC_PUBLIC )
70
- PHP_FALIAS ( validate , dom_document_validate , arginfo_class_DOMDocument_validate )
71
- PHP_FALIAS ( xinclude , dom_document_xinclude , arginfo_class_DOMDocument_xinclude )
70
+ PHP_ME ( domdocument , validate , arginfo_class_DOMDocument_validate , ZEND_ACC_PUBLIC )
71
+ PHP_ME ( domdocument , xinclude , arginfo_class_DOMDocument_xinclude , ZEND_ACC_PUBLIC )
72
72
#if defined(LIBXML_HTML_ENABLED )
73
73
PHP_ME (domdocument , loadHTML , arginfo_class_DOMDocument_loadHTML , ZEND_ACC_PUBLIC )
74
74
PHP_ME (domdocument , loadHTMLFile , arginfo_class_DOMDocument_loadHTMLFile , ZEND_ACC_PUBLIC )
75
- PHP_FALIAS ( saveHTML , dom_document_save_html , arginfo_class_DOMDocument_saveHTML )
76
- PHP_FALIAS ( saveHTMLFile , dom_document_save_html_file , arginfo_class_DOMDocument_saveHTMLFile )
75
+ PHP_ME ( domdocument , saveHTML , arginfo_class_DOMDocument_saveHTML , ZEND_ACC_PUBLIC )
76
+ PHP_ME ( domdocument , saveHTMLFile , arginfo_class_DOMDocument_saveHTMLFile , ZEND_ACC_PUBLIC )
77
77
#endif /* defined(LIBXML_HTML_ENABLED) */
78
78
#if defined(LIBXML_SCHEMAS_ENABLED )
79
- PHP_FALIAS ( schemaValidate , dom_document_schema_validate_file , arginfo_class_DOMDocument_schemaValidate )
80
- PHP_FALIAS ( schemaValidateSource , dom_document_schema_validate_xml , arginfo_class_DOMDocument_schemaValidateSource )
81
- PHP_FALIAS ( relaxNGValidate , dom_document_relaxNG_validate_file , arginfo_class_DOMDocument_relaxNGValidate )
82
- PHP_FALIAS ( relaxNGValidateSource , dom_document_relaxNG_validate_xml , arginfo_class_DOMDocument_relaxNGValidateSource )
79
+ PHP_ME ( domdocument , schemaValidate , arginfo_class_DOMDocument_schemaValidate , ZEND_ACC_PUBLIC )
80
+ PHP_ME ( domdocument , schemaValidateSource , arginfo_class_DOMDocument_schemaValidateSource , ZEND_ACC_PUBLIC )
81
+ PHP_ME ( domdocument , relaxNGValidate , arginfo_class_DOMDocument_relaxNGValidate , ZEND_ACC_PUBLIC )
82
+ PHP_ME ( domdocument , relaxNGValidateSource , arginfo_class_DOMDocument_relaxNGValidateSource , ZEND_ACC_PUBLIC )
83
83
#endif
84
84
PHP_ME (domdocument , registerNodeClass , arginfo_class_DOMDocument_registerNodeClass , ZEND_ACC_PUBLIC )
85
85
PHP_FE_END
@@ -551,7 +551,7 @@ int dom_document_config_read(dom_object *obj, zval *retval)
551
551
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-2141741547
552
552
Since:
553
553
*/
554
- PHP_FUNCTION ( dom_document_create_element )
554
+ PHP_METHOD ( domdocument , createElement )
555
555
{
556
556
zval * id ;
557
557
xmlNode * node ;
@@ -586,7 +586,7 @@ PHP_FUNCTION(dom_document_create_element)
586
586
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-35CB04B5
587
587
Since:
588
588
*/
589
- PHP_FUNCTION ( dom_document_create_document_fragment )
589
+ PHP_METHOD ( domdocument , createDocumentFragment )
590
590
{
591
591
zval * id ;
592
592
xmlNode * node ;
@@ -614,7 +614,7 @@ PHP_FUNCTION(dom_document_create_document_fragment)
614
614
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1975348127
615
615
Since:
616
616
*/
617
- PHP_FUNCTION ( dom_document_create_text_node )
617
+ PHP_METHOD ( domdocument , createTextNode )
618
618
{
619
619
zval * id ;
620
620
xmlNode * node ;
@@ -644,7 +644,7 @@ PHP_FUNCTION(dom_document_create_text_node)
644
644
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1334481328
645
645
Since:
646
646
*/
647
- PHP_FUNCTION ( dom_document_create_comment )
647
+ PHP_METHOD ( domdocument , createComment )
648
648
{
649
649
zval * id ;
650
650
xmlNode * node ;
@@ -674,7 +674,7 @@ PHP_FUNCTION(dom_document_create_comment)
674
674
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D26C0AF8
675
675
Since:
676
676
*/
677
- PHP_FUNCTION ( dom_document_create_cdatasection )
677
+ PHP_METHOD ( domdocument , createCDATASection )
678
678
{
679
679
zval * id ;
680
680
xmlNode * node ;
@@ -704,7 +704,7 @@ PHP_FUNCTION(dom_document_create_cdatasection)
704
704
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-135944439
705
705
Since:
706
706
*/
707
- PHP_FUNCTION ( dom_document_create_processing_instruction )
707
+ PHP_METHOD ( domdocument , createProcessingInstruction )
708
708
{
709
709
zval * id ;
710
710
xmlNode * node ;
@@ -741,7 +741,7 @@ PHP_FUNCTION(dom_document_create_processing_instruction)
741
741
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1084891198
742
742
Since:
743
743
*/
744
- PHP_FUNCTION ( dom_document_create_attribute )
744
+ PHP_METHOD ( domdocument , createAttribute )
745
745
{
746
746
zval * id ;
747
747
xmlAttrPtr node ;
@@ -777,7 +777,7 @@ PHP_FUNCTION(dom_document_create_attribute)
777
777
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-392B75AE
778
778
Since:
779
779
*/
780
- PHP_FUNCTION ( dom_document_create_entity_reference )
780
+ PHP_METHOD ( domdocument , createEntityReference )
781
781
{
782
782
zval * id ;
783
783
xmlNode * node ;
@@ -812,7 +812,7 @@ PHP_FUNCTION(dom_document_create_entity_reference)
812
812
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-A6C9094
813
813
Since:
814
814
*/
815
- PHP_FUNCTION ( dom_document_get_elements_by_tag_name )
815
+ PHP_METHOD ( domdocument , getElementsByTagName )
816
816
{
817
817
zval * id ;
818
818
xmlDocPtr docp ;
@@ -839,7 +839,7 @@ PHP_FUNCTION(dom_document_get_elements_by_tag_name)
839
839
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Core-Document-importNode
840
840
Since: DOM Level 2
841
841
*/
842
- PHP_FUNCTION ( dom_document_import_node )
842
+ PHP_METHOD ( domdocument , importNode )
843
843
{
844
844
zval * id , * node ;
845
845
xmlDocPtr docp ;
@@ -895,7 +895,7 @@ PHP_FUNCTION(dom_document_import_node)
895
895
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrElNS
896
896
Since: DOM Level 2
897
897
*/
898
- PHP_FUNCTION ( dom_document_create_element_ns )
898
+ PHP_METHOD ( domdocument , createElementNS )
899
899
{
900
900
zval * id ;
901
901
xmlDocPtr docp ;
@@ -960,7 +960,7 @@ PHP_FUNCTION(dom_document_create_element_ns)
960
960
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrAttrNS
961
961
Since: DOM Level 2
962
962
*/
963
- PHP_FUNCTION ( dom_document_create_attribute_ns )
963
+ PHP_METHOD ( domdocument , createAttributeNS )
964
964
{
965
965
zval * id ;
966
966
xmlDocPtr docp ;
@@ -1027,7 +1027,7 @@ PHP_FUNCTION(dom_document_create_attribute_ns)
1027
1027
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBTNNS
1028
1028
Since: DOM Level 2
1029
1029
*/
1030
- PHP_FUNCTION ( dom_document_get_elements_by_tag_name_ns )
1030
+ PHP_METHOD ( domdocument , getElementsByTagNameNS )
1031
1031
{
1032
1032
zval * id ;
1033
1033
xmlDocPtr docp ;
@@ -1055,7 +1055,7 @@ PHP_FUNCTION(dom_document_get_elements_by_tag_name_ns)
1055
1055
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBId
1056
1056
Since: DOM Level 2
1057
1057
*/
1058
- PHP_FUNCTION ( dom_document_get_element_by_id )
1058
+ PHP_METHOD ( domdocument , getElementById )
1059
1059
{
1060
1060
zval * id ;
1061
1061
xmlDocPtr docp ;
@@ -1087,7 +1087,7 @@ PHP_FUNCTION(dom_document_get_element_by_id)
1087
1087
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-adoptNode
1088
1088
Since: DOM Level 3
1089
1089
*/
1090
- PHP_FUNCTION ( dom_document_adopt_node )
1090
+ PHP_METHOD ( domdocument , adoptNode )
1091
1091
{
1092
1092
zval * nodep = NULL ;
1093
1093
@@ -1103,7 +1103,7 @@ PHP_FUNCTION(dom_document_adopt_node)
1103
1103
URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-normalizeDocument
1104
1104
Since: DOM Level 3
1105
1105
*/
1106
- PHP_FUNCTION ( dom_document_normalize_document )
1106
+ PHP_METHOD ( domdocument , normalizeDocument )
1107
1107
{
1108
1108
zval * id ;
1109
1109
xmlDocPtr docp ;
@@ -1428,7 +1428,7 @@ PHP_METHOD(domdocument, loadXML)
1428
1428
/* {{{ proto int dom_document_save(string file)
1429
1429
Convenience method to save to file
1430
1430
*/
1431
- PHP_FUNCTION ( dom_document_save )
1431
+ PHP_METHOD ( domdocument , save )
1432
1432
{
1433
1433
zval * id ;
1434
1434
xmlDoc * docp ;
@@ -1474,7 +1474,7 @@ PHP_FUNCTION(dom_document_save)
1474
1474
URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-saveXML
1475
1475
Since: DOM Level 3
1476
1476
*/
1477
- PHP_FUNCTION ( dom_document_savexml )
1477
+ PHP_METHOD ( domdocument , saveXML )
1478
1478
{
1479
1479
zval * id , * nodep = NULL ;
1480
1480
xmlDoc * docp ;
@@ -1585,7 +1585,7 @@ static void php_dom_remove_xinclude_nodes(xmlNodePtr cur) /* {{{ */
1585
1585
1586
1586
/* {{{ proto int dom_document_xinclude([int options])
1587
1587
Substitutues xincludes in a DomDocument */
1588
- PHP_FUNCTION ( dom_document_xinclude )
1588
+ PHP_METHOD ( domdocument , xinclude )
1589
1589
{
1590
1590
zval * id ;
1591
1591
xmlDoc * docp ;
@@ -1632,7 +1632,7 @@ PHP_FUNCTION(dom_document_xinclude)
1632
1632
/* {{{ proto bool dom_document_validate()
1633
1633
Since: DOM extended
1634
1634
*/
1635
- PHP_FUNCTION ( dom_document_validate )
1635
+ PHP_METHOD ( domdocument , validate )
1636
1636
{
1637
1637
zval * id ;
1638
1638
xmlDoc * docp ;
@@ -1752,14 +1752,14 @@ static void _dom_document_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type
1752
1752
/* }}} */
1753
1753
1754
1754
/* {{{ proto bool dom_document_schema_validate_file(string filename, int flags); */
1755
- PHP_FUNCTION ( dom_document_schema_validate_file )
1755
+ PHP_METHOD ( domdocument , schemaValidate )
1756
1756
{
1757
1757
_dom_document_schema_validate (INTERNAL_FUNCTION_PARAM_PASSTHRU , DOM_LOAD_FILE );
1758
1758
}
1759
1759
/* }}} end dom_document_schema_validate_file */
1760
1760
1761
1761
/* {{{ proto bool dom_document_schema_validate(string source, int flags); */
1762
- PHP_FUNCTION ( dom_document_schema_validate_xml )
1762
+ PHP_METHOD ( domdocument , schemaValidateSource )
1763
1763
{
1764
1764
_dom_document_schema_validate (INTERNAL_FUNCTION_PARAM_PASSTHRU , DOM_LOAD_STRING );
1765
1765
}
@@ -1846,14 +1846,14 @@ static void _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAMETERS, int typ
1846
1846
/* }}} */
1847
1847
1848
1848
/* {{{ proto bool dom_document_relaxNG_validate_file(string filename); */
1849
- PHP_FUNCTION ( dom_document_relaxNG_validate_file )
1849
+ PHP_METHOD ( domdocument , relaxNGValidate )
1850
1850
{
1851
1851
_dom_document_relaxNG_validate (INTERNAL_FUNCTION_PARAM_PASSTHRU , DOM_LOAD_FILE );
1852
1852
}
1853
1853
/* }}} end dom_document_relaxNG_validate_file */
1854
1854
1855
1855
/* {{{ proto bool dom_document_relaxNG_validate_xml(string source); */
1856
- PHP_FUNCTION ( dom_document_relaxNG_validate_xml )
1856
+ PHP_METHOD ( domdocument , relaxNGValidateSource )
1857
1857
{
1858
1858
_dom_document_relaxNG_validate (INTERNAL_FUNCTION_PARAM_PASSTHRU , DOM_LOAD_STRING );
1859
1859
}
@@ -1978,7 +1978,7 @@ PHP_METHOD(domdocument, loadHTML)
1978
1978
/* {{{ proto int dom_document_save_html_file(string file)
1979
1979
Convenience method to save to file as html
1980
1980
*/
1981
- PHP_FUNCTION ( dom_document_save_html_file )
1981
+ PHP_METHOD ( domdocument , saveHTMLFile )
1982
1982
{
1983
1983
zval * id ;
1984
1984
xmlDoc * docp ;
@@ -2018,7 +2018,7 @@ PHP_FUNCTION(dom_document_save_html_file)
2018
2018
/* {{{ proto string dom_document_save_html()
2019
2019
Convenience method to output as html
2020
2020
*/
2021
- PHP_FUNCTION ( dom_document_save_html )
2021
+ PHP_METHOD ( domdocument , saveHTML )
2022
2022
{
2023
2023
zval * id , * nodep = NULL ;
2024
2024
xmlDoc * docp ;
0 commit comments