reference/pspell/functions/pspell-suggest.xml
81b23db050ac0627b056585c16bfe95445ae174e
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>array</type><methodname>pspell_suggest</methodname>
13
-
<methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam>
12
+
<type class="union"><type>array</type><type>false</type></type><methodname>pspell_suggest</methodname>
13
+
<methodparam><type>PSpell\Dictionary</type><parameter>dictionary</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>word</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<simpara>
...
...
@@ -24,10 +24,9 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>dictionary_link</parameter></term>
27
+
<term><parameter>dictionary</parameter></term>
28
28
<listitem>
29
-
<para>
30
-
</para>
29
+
&pspell.parameter.pspell-dictionary;
31
30
</listitem>
32
31
</varlistentry>
33
32
<varlistentry>
...
...
@@ -49,6 +48,23 @@
49
48
</para>
50
49
</refsect1>
51
50

51
+
<refsect1 role="changelog">
52
+
&reftitle.changelog;
53
+
<informaltable>
54
+
<tgroup cols="2">
55
+
<thead>
56
+
<row>
57
+
<entry>&Version;</entry>
58
+
<entry>&Description;</entry>
59
+
</row>
60
+
</thead>
61
+
<tbody>
62
+
&pspell.changelog.pspell-dictionary;
63
+
</tbody>
64
+
</tgroup>
65
+
</informaltable>
66
+
</refsect1>
67
+

52
68
<refsect1 role="examples">
53
69
&reftitle.examples;
54
70
<para>
...
...
@@ -57,10 +73,10 @@
57
73
<programlisting role="php">
58
74
<![CDATA[
59
75
<?php
60
-
$pspell_link = pspell_new("en");
76
+
$pspell = pspell_new("en");
61
77

62
-
if (!pspell_check($pspell_link, "testt")) {
63
-
$suggestions = pspell_suggest($pspell_link, "testt");
78
+
if (!pspell_check($pspell, "testt")) {
79
+
$suggestions = pspell_suggest($pspell, "testt");
64
80

65
81
foreach ($suggestions as $suggestion) {
66
82
echo "Possible spelling: $suggestion<br />";
...
...
@@ -74,7 +90,6 @@ if (!pspell_check($pspell_link, "testt")) {
74
90
</refsect1>
75
91

76
92
</refentry>
77
-

78
93
<!-- Keep this comment at the end of the file
79
94
Local variables:
80
95
mode: sgml
81
96