reference/classobj/functions/get-class-methods.xml
5ea9b57cba0d2005f15922eb259d2a262a845c5f
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>get_class_methods</methodname>
12
-
<methodparam><type>mixed</type><parameter>class_name</parameter></methodparam>
12
+
<methodparam><type class="union"><type>object</type><type>string</type></type><parameter>object_or_class</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
Gets the class methods names.
...
...
@@ -20,7 +20,7 @@
20
20
<para>
21
21
<variablelist>
22
22
<varlistentry>
23
-
<term><parameter>class_name</parameter></term>
23
+
<term><parameter>object_or_class</parameter></term>
24
24
<listitem>
25
25
<para>
26
26
The class name or an object instance
...
...
@@ -34,9 +34,32 @@
34
34
&reftitle.returnvalues;
35
35
<para>
36
36
Returns an array of method names defined for the class specified by
37
-
<parameter>class_name</parameter>. In case of an error, it returns &null;.
37
+
<parameter>object_or_class</parameter>.
38
38
</para>
39
39
</refsect1>
40
+

41
+
<refsect1 role="changelog">
42
+
&reftitle.changelog;
43
+
<informaltable>
44
+
<tgroup cols="2">
45
+
<thead>
46
+
<row>
47
+
<entry>&Version;</entry>
48
+
<entry>&Description;</entry>
49
+
</row>
50
+
</thead>
51
+
<tbody>
52
+
<row>
53
+
<entry>8.0.0</entry>
54
+
<entry>
55
+
The <parameter>object_or_class</parameter> parameter now only accepts objects or valid class names.
56
+
</entry>
57
+
</row>
58
+
</tbody>
59
+
</tgroup>
60
+
</informaltable>
61
+
</refsect1>
62
+

40
63
<refsect1 role="examples">
41
64
&reftitle.examples;
42
65
<para>
...
...
@@ -48,7 +71,7 @@
48
71

49
72
class myclass {
50
73
// constructor
51
-
function myclass()
74
+
function __construct()
52
75
{
53
76
return(true);
54
77
}
...
...
@@ -80,7 +103,7 @@ foreach ($class_methods as $method_name) {
80
103
&example.outputs;
81
104
<screen>
82
105
<![CDATA[
83
-
myclass
106
+
__construct
84
107
myfunc1
85
108
myfunc2
86
109
]]>
...
...
@@ -99,7 +122,6 @@ myfunc2
99
122
</para>
100
123
</refsect1>
101
124
</refentry>
102
-

103
125
<!-- Keep this comment at the end of the file
104
126
Local variables:
105
127
mode: sgml
106
128