reference/classobj/functions/trait-exists.xml
42bd1bfed391b287e55e47fed1b8f8d22a033ee0
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="function.trait-exists" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>trait_exists</refname>
...
...
@@ -11,8 +10,8 @@
11
10
&reftitle.description;
12
11
<methodsynopsis>
13
12
<type>bool</type><methodname>trait_exists</methodname>
14
-
<methodparam><type>string</type><parameter>traitname</parameter></methodparam>
15
-
<methodparam choice="opt"><type>bool</type><parameter>autoload</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>trait</parameter></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>autoload</parameter><initializer>&true;</initializer></methodparam>
16
15
</methodsynopsis>
17
16
<para>
18
17

...
...
@@ -24,7 +23,7 @@
24
23
&reftitle.parameters;
25
24
<variablelist>
26
25
<varlistentry>
27
-
<term><parameter>traitname</parameter></term>
26
+
<term><parameter>trait</parameter></term>
28
27
<listitem>
29
28
<para>
30
29
Name of the trait to check
...
...
@@ -34,9 +33,10 @@
34
33
<varlistentry>
35
34
<term><parameter>autoload</parameter></term>
36
35
<listitem>
37
-
<para>
38
-
Whether to autoload if not already loaded.
39
-
</para>
36
+
<para>
37
+
Whether to <link linkend="language.oop5.autoload">autoload</link>
38
+
if not already loaded.
39
+
</para>
40
40
</listitem>
41
41
</varlistentry>
42
42
</variablelist>
...
...
@@ -45,13 +45,12 @@
45
45
<refsect1 role="returnvalues">
46
46
&reftitle.returnvalues;
47
47
<para>
48
-
Returns &true; if trait exists, &false; if not, &null; in case of an error.
48
+
Returns &true; if trait exists, and &false; otherwise.
49
49
</para>
50
50
</refsect1>
51
51

52
52

53
53
</refentry>
54
-

55
54
<!-- Keep this comment at the end of the file
56
55
Local variables:
57
56
mode: sgml
58
57