reference/classobj/functions/get-class-vars.xml
c44475e1fafcbee203ed4935a6d5d7a01379fcdc
...
...
@@ -9,7 +9,7 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>array</type><methodname>get_class_vars</methodname>
12
-
<methodparam><type>string</type><parameter>class_name</parameter></methodparam>
12
+
<methodparam><type>string</type><parameter>class</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
Get the default properties of the given class.
...
...
@@ -20,7 +20,7 @@
20
20
<para>
21
21
<variablelist>
22
22
<varlistentry>
23
-
<term><parameter>class_name</parameter></term>
23
+
<term><parameter>class</parameter></term>
24
24
<listitem>
25
25
<para>
26
26
The class name
...
...
@@ -36,50 +36,10 @@
36
36
Returns an associative array of declared properties visible from the
37
37
current scope, with their default value.
38
38
The resulting array elements are in the form of
39
-
<literal>varname => value</literal>.
39
+
<literal>varname =&gt; value</literal>.
40
40
In case of an error, it returns &false;.
41
41
</para>
42
42
</refsect1>
43
-
<refsect1 role="changelog">
44
-
&reftitle.changelog;
45
-
<para>
46
-
<informaltable>
47
-
<tgroup cols="2">
48
-
<thead>
49
-
<row>
50
-
<entry>&Version;</entry>
51
-
<entry>&Description;</entry>
52
-
</row>
53
-
</thead>
54
-
<tbody>
55
-
<row>
56
-
<entry>5.0.3</entry>
57
-
<entry>
58
-
<function>get_class_vars</function> will
59
-
only return the properties that can be accessed from the current
60
-
scope.
61
-
</entry>
62
-
</row>
63
-
<row>
64
-
<entry>5.0.2</entry>
65
-
<entry>
66
-
Calling <function>get_class_vars</function> will now expose
67
-
all the properties as an array, unlike previous behaviour where
68
-
protected and private properties were prefixed with nul bytes.
69
-
</entry>
70
-
</row>
71
-
<row>
72
-
<entry>5.0.1</entry>
73
-
<entry>
74
-
Calling <function>get_class_vars</function> will expose all
75
-
properties, as when converting an object to a class.
76
-
</entry>
77
-
</row>
78
-
</tbody>
79
-
</tgroup>
80
-
</informaltable>
81
-
</para>
82
-
</refsect1>
83
43
<refsect1 role="examples">
84
44
&reftitle.examples;
85
45
<para>
...
...
@@ -184,7 +144,6 @@ a
184
144
</para>
185
145
</refsect1>
186
146
</refentry>
187
-

188
147
<!-- Keep this comment at the end of the file
189
148
Local variables:
190
149
mode: sgml
191
150