reference/intl/resourcebundle/get.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -12,20 +12,19 @@
12
12
<para>
13
13
&style.oop;
14
14
</para>
15
-
<methodsynopsis>
16
-
<modifier>public</modifier>
17
-
<type>mixed</type>
18
-
<methodname>ResourceBundle::get</methodname>
19
-
<methodparam><type>string|int</type><parameter>index</parameter></methodparam>
15
+
<methodsynopsis role="ResourceBundle">
16
+
<modifier>public</modifier> <type>mixed</type><methodname>ResourceBundle::get</methodname>
17
+
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>index</parameter></methodparam>
18
+
<methodparam choice="opt"><type>bool</type><parameter>fallback</parameter><initializer>&true;</initializer></methodparam>
20
19
</methodsynopsis>
21
20
<para>
22
21
&style.procedural;
23
22
</para>
24
23
<methodsynopsis>
25
-
<type>mixed</type>
26
-
<methodname>resourcebundle_get</methodname>
27
-
<methodparam><type>ResourceBundle</type><parameter>r</parameter></methodparam>
28
-
<methodparam><type>string|int</type><parameter>index</parameter></methodparam>
24
+
<type>mixed</type><methodname>resourcebundle_get</methodname>
25
+
<methodparam><type>ResourceBundle</type><parameter>bundle</parameter></methodparam>
26
+
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>index</parameter></methodparam>
27
+
<methodparam choice="opt"><type>bool</type><parameter>fallback</parameter><initializer>&true;</initializer></methodparam>
29
28
</methodsynopsis>
30
29
<para>
31
30
Get the data from the bundle by index or string key.
...
...
@@ -37,7 +36,7 @@
37
36
<para>
38
37
<variablelist>
39
38
<varlistentry>
40
-
<term><parameter>r</parameter></term>
39
+
<term><parameter>bundle</parameter></term>
41
40
<listitem>
42
41
<para>
43
42
<classname>ResourceBundle</classname> object.
...
...
@@ -52,6 +51,14 @@
52
51
</para>
53
52
</listitem>
54
53
</varlistentry>
54
+
<varlistentry>
55
+
<term><parameter>fallback</parameter></term>
56
+
<listitem>
57
+
<para>
58
+
Whether locale should match exactly or fallback to parent locale is allowed.
59
+
</para>
60
+
</listitem>
61
+
</varlistentry>
55
62
</variablelist>
56
63
</para>
57
64
</refsect1>
...
...
@@ -107,7 +114,6 @@ echo $r->get('somestring');
107
114
</para>
108
115
</refsect1>
109
116
</refentry>
110
-

111
117
<!-- Keep this comment at the end of the file
112
118
Local variables:
113
119
mode: sgml
114
120