reference/pspell/functions/pspell-add-to-personal.xml
81b23db050ac0627b056585c16bfe95445ae174e
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>pspell_add_to_personal</methodname>
13
-
<methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam>
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>
...
...
@@ -27,10 +27,9 @@
27
27
<para>
28
28
<variablelist>
29
29
<varlistentry>
30
-
<term><parameter>dictionary_link</parameter></term>
30
+
<term><parameter>dictionary</parameter></term>
31
31
<listitem>
32
-
<para>
33
-
</para>
32
+
&pspell.parameter.pspell-dictionary;
34
33
</listitem>
35
34
</varlistentry>
36
35
<varlistentry>
...
...
@@ -52,6 +51,23 @@
52
51
</para>
53
52
</refsect1>
54
53

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

55
71
<refsect1 role="examples">
56
72
&reftitle.examples;
57
73
<para>
...
...
@@ -62,10 +78,10 @@
62
78
<?php
63
79
$pspell_config = pspell_config_create("en");
64
80
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
65
-
$pspell_link = pspell_new_config($pspell_config);
81
+
$pspell = pspell_new_config($pspell_config);
66
82

67
-
pspell_add_to_personal($pspell_link, "Vlad");
68
-
pspell_save_wordlist($pspell_link);
83
+
pspell_add_to_personal($pspell, "Vlad");
84
+
pspell_save_wordlist($pspell);
69
85
?>
70
86
]]>
71
87
</programlisting>
...
...
@@ -84,7 +100,6 @@ pspell_save_wordlist($pspell_link);
84
100
</refsect1>
85
101

86
102
</refentry>
87
-

88
103
<!-- Keep this comment at the end of the file
89
104
Local variables:
90
105
mode: sgml
91
106