reference/pspell/functions/pspell-clear-session.xml
81b23db050ac0627b056585c16bfe95445ae174e
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>pspell_clear_session</methodname>
13
-
<methodparam><type>int</type><parameter>dictionary_link</parameter></methodparam>
13
+
<methodparam><type>PSpell\Dictionary</type><parameter>dictionary</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<simpara>
16
16
<function>pspell_clear_session</function> clears the current session.
...
...
@@ -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
</variablelist>
...
...
@@ -41,6 +40,23 @@
41
40
</para>
42
41
</refsect1>
43
42

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<informaltable>
46
+
<tgroup cols="2">
47
+
<thead>
48
+
<row>
49
+
<entry>&Version;</entry>
50
+
<entry>&Description;</entry>
51
+
</row>
52
+
</thead>
53
+
<tbody>
54
+
&pspell.changelog.pspell-dictionary;
55
+
</tbody>
56
+
</tgroup>
57
+
</informaltable>
58
+
</refsect1>
59
+

44
60
<refsect1 role="examples">
45
61
&reftitle.examples;
46
62
<para>
...
...
@@ -51,11 +67,11 @@
51
67
<?php
52
68
$pspell_config = pspell_config_create("en");
53
69
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
54
-
$pspell_link = pspell_new_config($pspell_config);
70
+
$pspell = pspell_new_config($pspell_config);
55
71

56
-
pspell_add_to_personal($pspell_link, "Vlad");
57
-
pspell_clear_session($pspell_link);
58
-
pspell_save_wordlist($pspell_link); //"Vlad" will not be saved
72
+
pspell_add_to_personal($pspell, "Vlad");
73
+
pspell_clear_session($pspell);
74
+
pspell_save_wordlist($pspell); //"Vlad" will not be saved
59
75
?>
60
76
]]>
61
77
</programlisting>
...
...
@@ -64,7 +80,6 @@ pspell_save_wordlist($pspell_link); //"Vlad" will not be saved
64
80
</refsect1>
65
81
66
82
</refentry>
67
-

68
83
<!-- Keep this comment at the end of the file
69
84
Local variables:
70
85
mode: sgml
71
86