reference/apache/functions/apache-note.xml
a331ac8a86bb5929b79be9a369fac1e3af516241
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>apache_note</methodname>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>apache_note</methodname>
13
13
<methodparam><type>string</type><parameter>note_name</parameter></methodparam>
14
-
<methodparam choice="opt"><type>string</type><parameter>note_value</parameter><initializer>""</initializer></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>note_value</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
This function is a wrapper for Apache's <literal>table_get</literal> and
...
...
@@ -52,8 +52,8 @@
52
52
<refsect1 role="returnvalues">
53
53
&reftitle.returnvalues;
54
54
<para>
55
-
If called with one argument, it returns the current value of note
56
-
<literal>note_name</literal>. If called with two arguments, it
55
+
If <parameter>note_value</parameter> is omitted or &null;, it returns the current value of note
56
+
<literal>note_name</literal>. Otherwise, it
57
57
sets the value of note <literal>note_name</literal> to
58
58
<literal>note_value</literal> and returns the previous value of
59
59
note <literal>note_name</literal>.
...
...
@@ -61,6 +61,28 @@
61
61
</para>
62
62
</refsect1>
63
63

64
+
<refsect1 role="changelog">
65
+
&reftitle.changelog;
66
+
<informaltable>
67
+
<tgroup cols="2">
68
+
<thead>
69
+
<row>
70
+
<entry>&Version;</entry>
71
+
<entry>&Description;</entry>
72
+
</row>
73
+
</thead>
74
+
<tbody>
75
+
<row>
76
+
<entry>8.0.0</entry>
77
+
<entry>
78
+
<parameter>note_value</parameter> is nullable now.
79
+
</entry>
80
+
</row>
81
+
</tbody>
82
+
</tgroup>
83
+
</informaltable>
84
+
</refsect1>
85
+

64
86
<refsect1 role="examples">
65
87
&reftitle.examples;
66
88
<para>
...
...
@@ -126,7 +148,6 @@ apache_note('sessionID', session_id());
126
148
</refsect1>
127
149

128
150
</refentry>
129
-

130
151
<!-- Keep this comment at the end of the file
131
152
Local variables:
132
153
mode: sgml
133
154