reference/classobj/functions/is-a.xml
fd65805e83f7dc3b12ab5844cafc4489dc367a27
...
...
@@ -3,7 +3,7 @@
3
3
<refentry xml:id="function.is-a" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>is_a</refname>
6
-
<refpurpose>Checks if the object is of this class or has this class as one of its parents</refpurpose>
6
+
<refpurpose>Checks whether the object is of a given type or subtype</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
...
...
@@ -14,8 +14,9 @@
14
14
<methodparam choice="opt"><type>bool</type><parameter>allow_string</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
-
Checks if the given <parameter>object_or_class</parameter> is of this class or has
18
-
this class as one of its parents.
17
+
Determines if the given <parameter>object_or_class</parameter> is the
18
+
<parameter>class</parameter> object type,
19
+
or has <parameter>class</parameter> as one of its supertypes.
19
20
</para>
20
21
</refsect1>
21
22
<refsect1 role="parameters">
...
...
@@ -34,7 +35,7 @@
34
35
<term><parameter>class</parameter></term>
35
36
<listitem>
36
37
<para>
37
-
The class name
38
+
The class or interface name
38
39
</para>
39
40
</listitem>
40
41
</varlistentry>
...
...
@@ -53,8 +54,9 @@
53
54
<refsect1 role="returnvalues">
54
55
&reftitle.returnvalues;
55
56
<para>
56
-
Returns &true; if the object is of this class or has this class as one of
57
-
its parents, &false; otherwise.
57
+
Returns &true; if <parameter>object_or_class</parameter> is the
58
+
<parameter>class</parameter> object type,
59
+
or has <parameter>class</parameter> as one of its supertypes, &false; otherwise.
58
60
</para>
59
61
</refsect1>
60
62
<refsect1 role="examples">
61
63