1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 7816536650d8513ef6998233096b0bf6a29d7af4 */
3
4 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ResourceBundle___construct, 0, 0, 2)
5 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
6 ZEND_ARG_TYPE_INFO(0, bundle, IS_STRING, 1)
7 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fallback, _IS_BOOL, 0, "true")
8 ZEND_END_ARG_INFO()
9
10 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_ResourceBundle_create, 0, 2, ResourceBundle, 1)
11 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
12 ZEND_ARG_TYPE_INFO(0, bundle, IS_STRING, 1)
13 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fallback, _IS_BOOL, 0, "true")
14 ZEND_END_ARG_INFO()
15
16 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ResourceBundle_get, 0, 1, IS_MIXED, 0)
17 ZEND_ARG_INFO(0, index)
18 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fallback, _IS_BOOL, 0, "true")
19 ZEND_END_ARG_INFO()
20
21 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ResourceBundle_count, 0, 0, IS_LONG, 0)
22 ZEND_END_ARG_INFO()
23
24 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_ResourceBundle_getLocales, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
25 ZEND_ARG_TYPE_INFO(0, bundle, IS_STRING, 0)
26 ZEND_END_ARG_INFO()
27
28 #define arginfo_class_ResourceBundle_getErrorCode arginfo_class_ResourceBundle_count
29
30 ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ResourceBundle_getErrorMessage, 0, 0, IS_STRING, 0)
31 ZEND_END_ARG_INFO()
32
33 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ResourceBundle_getIterator, 0, 0, Iterator, 0)
34 ZEND_END_ARG_INFO()
35
36
37 ZEND_METHOD(ResourceBundle, __construct);
38 ZEND_FUNCTION(resourcebundle_create);
39 ZEND_FUNCTION(resourcebundle_get);
40 ZEND_FUNCTION(resourcebundle_count);
41 ZEND_FUNCTION(resourcebundle_locales);
42 ZEND_FUNCTION(resourcebundle_get_error_code);
43 ZEND_FUNCTION(resourcebundle_get_error_message);
44 ZEND_METHOD(ResourceBundle, getIterator);
45
46
47 static const zend_function_entry class_ResourceBundle_methods[] = {
48 ZEND_ME(ResourceBundle, __construct, arginfo_class_ResourceBundle___construct, ZEND_ACC_PUBLIC)
49 ZEND_ME_MAPPING(create, resourcebundle_create, arginfo_class_ResourceBundle_create, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
50 ZEND_ME_MAPPING(get, resourcebundle_get, arginfo_class_ResourceBundle_get, ZEND_ACC_PUBLIC)
51 ZEND_ME_MAPPING(count, resourcebundle_count, arginfo_class_ResourceBundle_count, ZEND_ACC_PUBLIC)
52 ZEND_ME_MAPPING(getLocales, resourcebundle_locales, arginfo_class_ResourceBundle_getLocales, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
53 ZEND_ME_MAPPING(getErrorCode, resourcebundle_get_error_code, arginfo_class_ResourceBundle_getErrorCode, ZEND_ACC_PUBLIC)
54 ZEND_ME_MAPPING(getErrorMessage, resourcebundle_get_error_message, arginfo_class_ResourceBundle_getErrorMessage, ZEND_ACC_PUBLIC)
55 ZEND_ME(ResourceBundle, getIterator, arginfo_class_ResourceBundle_getIterator, ZEND_ACC_PUBLIC)
56 ZEND_FE_END
57 };
58
register_class_ResourceBundle(zend_class_entry * class_entry_IteratorAggregate,zend_class_entry * class_entry_Countable)59 static zend_class_entry *register_class_ResourceBundle(zend_class_entry *class_entry_IteratorAggregate, zend_class_entry *class_entry_Countable)
60 {
61 zend_class_entry ce, *class_entry;
62
63 INIT_CLASS_ENTRY(ce, "ResourceBundle", class_ResourceBundle_methods);
64 class_entry = zend_register_internal_class_ex(&ce, NULL);
65 class_entry->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE;
66 zend_class_implements(class_entry, 2, class_entry_IteratorAggregate, class_entry_Countable);
67
68 return class_entry;
69 }
70