reference/intl/dateformatter/formatobject.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="intldateformatter.formatobject" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlDateFormatter::formatObject</refname>
...
...
@@ -13,21 +12,20 @@
13
12
<para>
14
13
&style.oop;
15
14
</para>
16
-
<methodsynopsis>
17
-
<modifier>public</modifier> <modifier>static</modifier> <type>string</type><methodname>IntlDateFormatter::formatObject</methodname>
18
-
<methodparam><type>object</type><parameter>object</parameter></methodparam>
19
-
<methodparam choice="opt"><type>mixed</type><parameter>format</parameter><initializer>NULL</initializer></methodparam>
20
-
<methodparam choice="opt"><type>string</type><parameter>locale</parameter><initializer>NULL</initializer></methodparam>
15
+
<methodsynopsis role="IntlDateFormatter">
16
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlDateFormatter::formatObject</methodname>
17
+
<methodparam><type class="union"><type>IntlCalendar</type><type>DateTimeInterface</type></type><parameter>datetime</parameter></methodparam>
18
+
<methodparam choice="opt"><type class="union"><type>array</type><type>int</type><type>string</type><type>null</type></type><parameter>format</parameter><initializer>&null;</initializer></methodparam>
19
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter><initializer>&null;</initializer></methodparam>
21
20
</methodsynopsis>
22
21
<para>
23
22
&style.procedural;
24
23
</para>
25
24
<methodsynopsis>
26
-
<modifier>public</modifier> <modifier>static</modifier>
27
-
<type>string</type><methodname>datefmt_format_object</methodname>
28
-
<methodparam><type>object</type><parameter>object</parameter></methodparam>
29
-
<methodparam choice="opt"><type>mixed</type><parameter>format</parameter><initializer>NULL</initializer></methodparam>
30
-
<methodparam choice="opt"><type>string</type><parameter>locale</parameter><initializer>NULL</initializer></methodparam>
25
+
<type class="union"><type>string</type><type>false</type></type><methodname>datefmt_format_object</methodname>
26
+
<methodparam><type class="union"><type>IntlCalendar</type><type>DateTimeInterface</type></type><parameter>datetime</parameter></methodparam>
27
+
<methodparam choice="opt"><type class="union"><type>array</type><type>int</type><type>string</type><type>null</type></type><parameter>format</parameter><initializer>&null;</initializer></methodparam>
28
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>locale</parameter><initializer>&null;</initializer></methodparam>
31
29
</methodsynopsis>
32
30
33
31
<para>
...
...
@@ -49,7 +47,7 @@
49
47
&reftitle.parameters;
50
48
<variablelist>
51
49
<varlistentry>
52
-
<term><parameter>object</parameter></term>
50
+
<term><parameter>datetime</parameter></term>
53
51
<listitem>
54
52
<para>
55
53
An object of type <classname>IntlCalendar</classname> or
...
...
@@ -68,7 +66,7 @@
68
66
<constant>IntlDateFormatter::SHORT</constant>,
69
67
<constant>IntlDateFormatter::MEDIUM</constant>,
70
68
<constant>IntlDateFormatter::LONG</constant>,
71
-
<constant>IntlDateFormatter::FULL</constant>), a <type>long</type> with
69
+
<constant>IntlDateFormatter::FULL</constant>), an <type>int</type> with
72
70
the value of one of these constants (in which case it will be used both
73
71
for the time and the date) or a <type>string</type> with the format
74
72
described in <link xlink:href="&url.icu.dateformat2;">the ICU
...
...
@@ -158,7 +156,6 @@ with DateTime:
158
156
</refsect1>
159
157
160
158
</refentry>
161
-

162
159
<!-- Keep this comment at the end of the file
163
160
Local variables:
164
161
mode: sgml
165
162