reference/reflection/reflectionclass/newinstanceargs.xml
ec2fe9a592f794978114ef5021db9f1d00c2e05d
...
...
@@ -1,17 +1,16 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="reflectionclass.newinstanceargs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionClass::newInstanceArgs</refname>
7
-
<refpurpose>Creates a new class instance from given arguments.</refpurpose>
6
+
<refpurpose>Creates a new class instance from given arguments</refpurpose>
8
7
</refnamediv>
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>object</type><methodname>ReflectionClass::newInstanceArgs</methodname>
14
-
<methodparam choice="opt"><type>array</type><parameter>args</parameter></methodparam>
11
+
<methodsynopsis role="ReflectionClass">
12
+
<modifier>public</modifier> <type class="union"><type>object</type><type>null</type></type><methodname>ReflectionClass::newInstanceArgs</methodname>
13
+
<methodparam choice="opt"><type>array</type><parameter>args</parameter><initializer>[]</initializer></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Creates a new instance of the class, the given arguments are passed to the
...
...
@@ -39,7 +38,18 @@
39
38
<refsect1 role="returnvalues">
40
39
&reftitle.returnvalues;
41
40
<para>
42
-
Returns a new instance of the class.
41
+
Returns a new instance of the class, or &null; on failure.
42
+
</para>
43
+
</refsect1>
44
+

45
+
<refsect1 role="errors">
46
+
&reftitle.errors;
47
+
<para>
48
+
A <classname>ReflectionException</classname> if the class constructor is not public.
49
+
</para>
50
+
<para>
51
+
A <classname>ReflectionException</classname> if the class does not have a constructor
52
+
and the <parameter>args</parameter> parameter contains one or more parameters.
43
53
</para>
44
54
</refsect1>
45
55
...
...
@@ -70,17 +80,6 @@ object(ReflectionFunction)#2 (1) {
70
80
</para>
71
81
</refsect1>
72
82

73
-
<refsect1 role="errors">
74
-
&reftitle.errors;
75
-
<para>
76
-
A <classname>ReflectionException</classname> if the class constructor is not public.
77
-
</para>
78
-
<para>
79
-
A <classname>ReflectionException</classname> if the class does not have a constructor
80
-
and the <parameter>args</parameter> parameter contains one or more parameters.
81
-
</para>
82
-
</refsect1>
83
-

84
83
<refsect1 role="seealso">
85
84
&reftitle.seealso;
86
85
<para>
...
...
@@ -92,7 +91,6 @@ object(ReflectionFunction)#2 (1) {
92
91
</refsect1>
93
92

94
93
</refentry>
95
-

96
94
<!-- Keep this comment at the end of the file
97
95
Local variables:
98
96
mode: sgml
99
97