xref: /PHP-8.2/ext/xsl/php_xsl_arginfo.h (revision d7a7309b)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 2385a6857c261123f9b9b892a669dbb12d5976e6 */
3 
4 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_importStylesheet, 0, 1, _IS_BOOL, 0)
5 	ZEND_ARG_TYPE_INFO(0, stylesheet, IS_OBJECT, 0)
6 ZEND_END_ARG_INFO()
7 
8 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_transformToDoc, 0, 1, MAY_BE_OBJECT|MAY_BE_FALSE)
9 	ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
10 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, returnClass, IS_STRING, 1, "null")
11 ZEND_END_ARG_INFO()
12 
13 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_transformToUri, 0, 2, IS_LONG, 0)
14 	ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
15 	ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0)
16 ZEND_END_ARG_INFO()
17 
18 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_transformToXml, 0, 1, MAY_BE_STRING|MAY_BE_NULL|MAY_BE_FALSE)
19 	ZEND_ARG_TYPE_INFO(0, document, IS_OBJECT, 0)
20 ZEND_END_ARG_INFO()
21 
22 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_setParameter, 0, 2, _IS_BOOL, 0)
23 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
24 	ZEND_ARG_TYPE_MASK(0, name, MAY_BE_ARRAY|MAY_BE_STRING, NULL)
25 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, value, IS_STRING, 1, "null")
26 ZEND_END_ARG_INFO()
27 
28 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_XSLTProcessor_getParameter, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
29 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
30 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
31 ZEND_END_ARG_INFO()
32 
33 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_removeParameter, 0, 2, _IS_BOOL, 0)
34 	ZEND_ARG_TYPE_INFO(0, namespace, IS_STRING, 0)
35 	ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
36 ZEND_END_ARG_INFO()
37 
38 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_hasExsltSupport, 0, 0, _IS_BOOL, 0)
39 ZEND_END_ARG_INFO()
40 
41 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_registerPHPFunctions, 0, 0, IS_VOID, 0)
42 	ZEND_ARG_TYPE_MASK(0, functions, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
43 ZEND_END_ARG_INFO()
44 
45 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_XSLTProcessor_setProfiling, 0, 0, 1)
46 	ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 1)
47 ZEND_END_ARG_INFO()
48 
49 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_setSecurityPrefs, 0, 1, IS_LONG, 0)
50 	ZEND_ARG_TYPE_INFO(0, preferences, IS_LONG, 0)
51 ZEND_END_ARG_INFO()
52 
53 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_getSecurityPrefs, 0, 0, IS_LONG, 0)
54 ZEND_END_ARG_INFO()
55 
56 
57 ZEND_METHOD(XSLTProcessor, importStylesheet);
58 ZEND_METHOD(XSLTProcessor, transformToDoc);
59 ZEND_METHOD(XSLTProcessor, transformToUri);
60 ZEND_METHOD(XSLTProcessor, transformToXml);
61 ZEND_METHOD(XSLTProcessor, setParameter);
62 ZEND_METHOD(XSLTProcessor, getParameter);
63 ZEND_METHOD(XSLTProcessor, removeParameter);
64 ZEND_METHOD(XSLTProcessor, hasExsltSupport);
65 ZEND_METHOD(XSLTProcessor, registerPHPFunctions);
66 ZEND_METHOD(XSLTProcessor, setProfiling);
67 ZEND_METHOD(XSLTProcessor, setSecurityPrefs);
68 ZEND_METHOD(XSLTProcessor, getSecurityPrefs);
69 
70 
71 static const zend_function_entry class_XSLTProcessor_methods[] = {
72 	ZEND_ME(XSLTProcessor, importStylesheet, arginfo_class_XSLTProcessor_importStylesheet, ZEND_ACC_PUBLIC)
73 	ZEND_ME(XSLTProcessor, transformToDoc, arginfo_class_XSLTProcessor_transformToDoc, ZEND_ACC_PUBLIC)
74 	ZEND_ME(XSLTProcessor, transformToUri, arginfo_class_XSLTProcessor_transformToUri, ZEND_ACC_PUBLIC)
75 	ZEND_ME(XSLTProcessor, transformToXml, arginfo_class_XSLTProcessor_transformToXml, ZEND_ACC_PUBLIC)
76 	ZEND_ME(XSLTProcessor, setParameter, arginfo_class_XSLTProcessor_setParameter, ZEND_ACC_PUBLIC)
77 	ZEND_ME(XSLTProcessor, getParameter, arginfo_class_XSLTProcessor_getParameter, ZEND_ACC_PUBLIC)
78 	ZEND_ME(XSLTProcessor, removeParameter, arginfo_class_XSLTProcessor_removeParameter, ZEND_ACC_PUBLIC)
79 	ZEND_ME(XSLTProcessor, hasExsltSupport, arginfo_class_XSLTProcessor_hasExsltSupport, ZEND_ACC_PUBLIC)
80 	ZEND_ME(XSLTProcessor, registerPHPFunctions, arginfo_class_XSLTProcessor_registerPHPFunctions, ZEND_ACC_PUBLIC)
81 	ZEND_ME(XSLTProcessor, setProfiling, arginfo_class_XSLTProcessor_setProfiling, ZEND_ACC_PUBLIC)
82 	ZEND_ME(XSLTProcessor, setSecurityPrefs, arginfo_class_XSLTProcessor_setSecurityPrefs, ZEND_ACC_PUBLIC)
83 	ZEND_ME(XSLTProcessor, getSecurityPrefs, arginfo_class_XSLTProcessor_getSecurityPrefs, ZEND_ACC_PUBLIC)
84 	ZEND_FE_END
85 };
86 
register_php_xsl_symbols(int module_number)87 static void register_php_xsl_symbols(int module_number)
88 {
89 	REGISTER_LONG_CONSTANT("XSL_CLONE_AUTO", 0, CONST_PERSISTENT);
90 	REGISTER_LONG_CONSTANT("XSL_CLONE_NEVER", -1, CONST_PERSISTENT);
91 	REGISTER_LONG_CONSTANT("XSL_CLONE_ALWAYS", 1, CONST_PERSISTENT);
92 	REGISTER_LONG_CONSTANT("XSL_SECPREF_NONE", XSL_SECPREF_NONE, CONST_PERSISTENT);
93 	REGISTER_LONG_CONSTANT("XSL_SECPREF_READ_FILE", XSL_SECPREF_READ_FILE, CONST_PERSISTENT);
94 	REGISTER_LONG_CONSTANT("XSL_SECPREF_WRITE_FILE", XSL_SECPREF_WRITE_FILE, CONST_PERSISTENT);
95 	REGISTER_LONG_CONSTANT("XSL_SECPREF_CREATE_DIRECTORY", XSL_SECPREF_CREATE_DIRECTORY, CONST_PERSISTENT);
96 	REGISTER_LONG_CONSTANT("XSL_SECPREF_READ_NETWORK", XSL_SECPREF_READ_NETWORK, CONST_PERSISTENT);
97 	REGISTER_LONG_CONSTANT("XSL_SECPREF_WRITE_NETWORK", XSL_SECPREF_WRITE_NETWORK, CONST_PERSISTENT);
98 	REGISTER_LONG_CONSTANT("XSL_SECPREF_DEFAULT", XSL_SECPREF_DEFAULT, CONST_PERSISTENT);
99 	REGISTER_LONG_CONSTANT("LIBXSLT_VERSION", LIBXSLT_VERSION, CONST_PERSISTENT);
100 	REGISTER_STRING_CONSTANT("LIBXSLT_DOTTED_VERSION", LIBXSLT_DOTTED_VERSION, CONST_PERSISTENT);
101 #if defined(HAVE_XSL_EXSLT)
102 	REGISTER_LONG_CONSTANT("LIBEXSLT_VERSION", LIBEXSLT_VERSION, CONST_PERSISTENT);
103 #endif
104 #if defined(HAVE_XSL_EXSLT)
105 	REGISTER_STRING_CONSTANT("LIBEXSLT_DOTTED_VERSION", LIBEXSLT_DOTTED_VERSION, CONST_PERSISTENT);
106 #endif
107 }
108 
register_class_XSLTProcessor(void)109 static zend_class_entry *register_class_XSLTProcessor(void)
110 {
111 	zend_class_entry ce, *class_entry;
112 
113 	INIT_CLASS_ENTRY(ce, "XSLTProcessor", class_XSLTProcessor_methods);
114 	class_entry = zend_register_internal_class_ex(&ce, NULL);
115 
116 	return class_entry;
117 }
118