reference/errorfunc/functions/trigger-error.xml
c44475e1fafcbee203ed4935a6d5d7a01379fcdc
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>trigger_error</methodname>
13
-
<methodparam><type>string</type><parameter>error_msg</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>error_type</parameter><initializer>E_USER_NOTICE</initializer></methodparam>
13
+
<methodparam><type>string</type><parameter>message</parameter></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>error_level</parameter><initializer><constant>E_USER_NOTICE</constant></initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Used to trigger a user error condition, it can be used in conjunction
...
...
@@ -30,7 +30,7 @@
30
30
<para>
31
31
<variablelist>
32
32
<varlistentry>
33
-
<term><parameter>error_msg</parameter></term>
33
+
<term><parameter>message</parameter></term>
34
34
<listitem>
35
35
<para>
36
36
The designated error message for this error. It's limited to 1024
...
...
@@ -40,7 +40,7 @@
40
40
</listitem>
41
41
</varlistentry>
42
42
<varlistentry>
43
-
<term><parameter>error_type</parameter></term>
43
+
<term><parameter>error_level</parameter></term>
44
44
<listitem>
45
45
<para>
46
46
The designated error type for this error. It only works with the E_USER
...
...
@@ -55,7 +55,7 @@
55
55
<refsect1 role="returnvalues">
56
56
&reftitle.returnvalues;
57
57
<para>
58
-
This function returns &false; if wrong <parameter>error_type</parameter> is
58
+
This function returns &false; if wrong <parameter>error_level</parameter> is
59
59
specified, &true; otherwise.
60
60
</para>
61
61
</refsect1>
...
...
@@ -85,7 +85,7 @@ if ($divisor == 0) {
85
85
&reftitle.notes;
86
86
<warning>
87
87
<para>
88
-
HTML entities in <parameter>error_msg</parameter> are not
88
+
HTML entities in <parameter>message</parameter> are not
89
89
escaped. Use <function>htmlentities</function> on the message if
90
90
the error is to be displayed in a browser.
91
91
</para>
...
...
@@ -104,7 +104,6 @@ if ($divisor == 0) {
104
104
</para>
105
105
</refsect1>
106
106
</refentry>
107
-

108
107
<!-- Keep this comment at the end of the file
109
108
Local variables:
110
109
mode: sgml
111
110