Skip to content

Commit d7345f5

Browse files
authored
Document Spoofchecker::setRestrictionLevel (#2274)
1 parent a5ddf6c commit d7345f5

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
<refentry xml:id="spoofchecker.setrestrictionlevel" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4+
<refnamediv>
5+
<refname>Spoofchecker::setRestrictionLevel</refname>
6+
<refpurpose>Set the restriction level</refpurpose>
7+
</refnamediv>
8+
9+
<refsect1 role="description">
10+
&reftitle.description;
11+
<methodsynopsis role="Spoofchecker">
12+
<modifier>public</modifier> <type>void</type><methodname>Spoofchecker::setRestrictionLevel</methodname>
13+
<methodparam><type>int</type><parameter>restrictionLevel</parameter></methodparam>
14+
</methodsynopsis>
15+
<para>
16+
Sets the restriction level of <methodname>SpoofChecker::isSuspicious</methodname>.
17+
</para>
18+
</refsect1>
19+
20+
<refsect1 role="parameters">
21+
&reftitle.parameters;
22+
<variablelist>
23+
<varlistentry>
24+
<term><parameter>restrictionLevel</parameter></term>
25+
<listitem>
26+
<para>
27+
The restriction level of <methodname>SpoofChecker::isSuspicious</methodname>.
28+
One of
29+
<constant>Spoofchecker::ASCII</constant>,
30+
<constant>Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE</constant>,
31+
<constant>Spoofchecker::HIGHLY_RESTRICTIVE</constant>,
32+
<constant>Spoofchecker::MODERATELY_RESTRICTIVE</constant>,
33+
<constant>Spoofchecker::MINIMALLY_RESTRICTIVE</constant>, or
34+
<constant>Spoofchecker::UNRESTRICTIVE</constant>.
35+
Defaults to <constant>Spoofchecker::HIGHLY_RESTRICTIVE</constant>.
36+
</para>
37+
</listitem>
38+
</varlistentry>
39+
</variablelist>
40+
</refsect1>
41+
42+
<refsect1 role="returnvalues">
43+
&reftitle.returnvalues;
44+
<para>
45+
&return.void;
46+
</para>
47+
</refsect1>
48+
49+
50+
</refentry>
51+
<!-- Keep this comment at the end of the file
52+
Local variables:
53+
mode: sgml
54+
sgml-omittag:t
55+
sgml-shorttag:t
56+
sgml-minimize-attributes:nil
57+
sgml-always-quote-attributes:t
58+
sgml-indent-step:1
59+
sgml-indent-data:t
60+
indent-tabs-mode:nil
61+
sgml-parent-document:nil
62+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
63+
sgml-exposed-tags:nil
64+
sgml-local-catalogs:nil
65+
sgml-local-ecat-files:nil
66+
End:
67+
vim600: syn=xml fen fdm=syntax fdl=2 si
68+
vim: et tw=78 syn=sgml
69+
vi: ts=1 sw=1
70+
-->

reference/intl/versions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@
308308
<function name="spoofchecker::issuspicious" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>
309309
<function name="spoofchecker::setallowedlocales" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>
310310
<function name="spoofchecker::setchecks" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>
311+
<function name="spoofchecker::setRestrictionLevel" from="PHP 7 &gt;= 7.3.0, PHP 8"/>
311312
<function name="transliterator" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>
312313
<function name="transliterator::__construct" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>
313314
<function name="transliterator::create" from="PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0"/>

0 commit comments

Comments
 (0)