reference/classobj/functions/method-exists.xml
6846ebb4e33d51faee4a1e99c241a7a24861e0e4
...
...
@@ -9,12 +9,12 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>method_exists</methodname>
12
-
<methodparam><type>mixed</type><parameter>object</parameter></methodparam>
13
-
<methodparam><type>string</type><parameter>method_name</parameter></methodparam>
12
+
<methodparam><type class="union"><type>object</type><type>string</type></type><parameter>object_or_class</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>method</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Checks if the class method exists in the given
17
-
<parameter>object</parameter>.
17
+
<parameter>object_or_class</parameter>.
18
18
</para>
19
19
</refsect1>
20
20
<refsect1 role="parameters">
...
...
@@ -22,7 +22,7 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>object</parameter></term>
25
+
<term><parameter>object_or_class</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
An object instance or a class name
...
...
@@ -30,7 +30,7 @@
30
30
</listitem>
31
31
</varlistentry>
32
32
<varlistentry>
33
-
<term><parameter>method_name</parameter></term>
33
+
<term><parameter>method</parameter></term>
34
34
<listitem>
35
35
<para>
36
36
The method name
...
...
@@ -43,17 +43,12 @@
43
43
<refsect1 role="returnvalues">
44
44
&reftitle.returnvalues;
45
45
<para>
46
-
Returns &true; if the method given by <parameter>method_name</parameter>
47
-
has been defined for the given <parameter>object</parameter>, &false;
46
+
Returns &true; if the method given by <parameter>method</parameter>
47
+
has been defined for the given <parameter>object_or_class</parameter>, &false;
48
48
otherwise.
49
49
</para>
50
50
</refsect1>
51
51

52
-
<refsect1 role="notes">
53
-
&reftitle.notes;
54
-
&note.uses-autoload;
55
-
</refsect1>
56
-

57
52
<refsect1 role="examples">
58
53
&reftitle.examples;
59
54
<para>
...
...
@@ -92,6 +87,12 @@ bool(true)
92
87
</example>
93
88
</para>
94
89
</refsect1>
90
+

91
+
<refsect1 role="notes">
92
+
&reftitle.notes;
93
+
&note.uses-autoload;
94
+
</refsect1>
95
+
95
96
<refsect1 role="seealso">
96
97
&reftitle.seealso;
97
98
<para>
...
...
@@ -103,7 +104,6 @@ bool(true)
103
104
</para>
104
105
</refsect1>
105
106
</refentry>
106
-

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