language/predefined/closure/bind.xml
9c74079f12d67cabb52c124d761f48275417d7eb
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="closure.bind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>Closure::bind</refname>
...
...
@@ -11,12 +10,11 @@
11
10

12
11
<refsect1 role="description">
13
12
&reftitle.description;
14
-
<methodsynopsis>
15
-
<modifier>public</modifier> <modifier>static</modifier> <type>Closure</type><methodname>Closure::bind</methodname>
13
+
<methodsynopsis role="Closure">
14
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>Closure</type><type>null</type></type><methodname>Closure::bind</methodname>
16
15
<methodparam><type>Closure</type><parameter>closure</parameter></methodparam>
17
-
<methodparam><type>object</type><parameter>newthis</parameter></methodparam>
18
-
<methodparam choice="opt"><type>mixed</type><parameter>newscope</parameter>
19
-
<initializer>"static"</initializer></methodparam>
16
+
<methodparam><type class="union"><type>object</type><type>null</type></type><parameter>newThis</parameter></methodparam>
17
+
<methodparam choice="opt"><type class="union"><type>object</type><type>string</type><type>null</type></type><parameter>newScope</parameter><initializer>"static"</initializer></methodparam>
20
18
</methodsynopsis>
21
19
<para>
22
20
This method is a static version of <methodname>Closure::bindTo</methodname>.
...
...
@@ -37,7 +35,7 @@
37
35
</listitem>
38
36
</varlistentry>
39
37
<varlistentry>
40
-
<term><parameter>newthis</parameter></term>
38
+
<term><parameter>newThis</parameter></term>
41
39
<listitem>
42
40
<para>
43
41
The object to which the given anonymous function should be bound, or
...
...
@@ -46,10 +44,10 @@
46
44
</listitem>
47
45
</varlistentry>
48
46
<varlistentry>
49
-
<term><parameter>newscope</parameter></term>
47
+
<term><parameter>newScope</parameter></term>
50
48
<listitem>
51
49
<para>
52
-
The class scope to which associate the closure is to be associated, or
50
+
The class scope to which the closure is to be associated, or
53
51
'static' to keep the current one. If an object is given, the type of the
54
52
object will be used instead. This determines the visibility of protected
55
53
and private methods of the bound object.
...
...
@@ -63,32 +61,7 @@
63
61
<refsect1 role="returnvalues">
64
62
&reftitle.returnvalues;
65
63
<para>
66
-
Returns a new <classname>Closure</classname> object &return.falseforfailure;
67
-
</para>
68
-
</refsect1>
69
-

70
-
<refsect1 role="changelog">
71
-
&reftitle.changelog;
72
-
<para>
73
-
<informaltable>
74
-
<tgroup cols="2">
75
-
<thead>
76
-
<row>
77
-
<entry>&Version;</entry>
78
-
<entry>&Description;</entry>
79
-
</row>
80
-
</thead>
81
-
<tbody>
82
-
<row>
83
-
<entry>7.0.0</entry>
84
-
<entry>
85
-
<parameter>newscope</parameter> can not be (an object of) an internal
86
-
class anymore, what was possible prior to this version.
87
-
</entry>
88
-
</row>
89
-
</tbody>
90
-
</tgroup>
91
-
</informaltable>
64
+
Returns a new <classname>Closure</classname> object, or &null; on failure.
92
65
</para>
93
66
</refsect1>
94
67

...
...
@@ -137,7 +110,6 @@ echo $bcl2(), "\n";
137
110
</refsect1>
138
111

139
112
</refentry>
140
-

141
113
<!-- Keep this comment at the end of the file
142
114
Local variables:
143
115
mode: sgml
144
116