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

4
3
<phpdoc:classref xml:id="class.closure" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5
4

6
5
<title>The Closure class</title>
...
...
@@ -17,9 +16,8 @@
17
16
</para>
18
17

19
18
<para>
20
-
Anonymous functions, implemented in PHP 5.3, yield objects of this type.
21
-
This fact used to be considered an implementation detail, but it can now
22
-
be relied upon. Starting with PHP 5.4, this class has methods that allow
19
+
Anonymous functions yield objects of this type.
20
+
This class has methods that allow
23
21
further control of the anonymous function after it has been created.
24
22
</para>
25
23

...
...
@@ -37,19 +35,19 @@
37
35
&reftitle.classsynopsis;
38
36

39
37
<!-- {{{ Synopsis -->
40
-
<classsynopsis>
41
-
<ooclass><classname>Closure</classname></ooclass>
42
-

43
-
<!-- {{{ Class synopsis -->
44
-
<classsynopsisinfo>
45
-
<ooclass>
46
-
<classname>Closure</classname>
47
-
</ooclass>
48
-
</classsynopsisinfo>
49
-
<!-- }}} -->
38
+
<classsynopsis class="class">
39
+
<ooclass>
40
+
<modifier>final</modifier>
41
+
<classname>Closure</classname>
42
+
</ooclass>
50
43

51
44
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
52
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.closure')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
45
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.closure')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Closure'])">
46
+
<xi:fallback/>
47
+
</xi:include>
48
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.closure')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Closure'])">
49
+
<xi:fallback/>
50
+
</xi:include>
53
51
</classsynopsis>
54
52
<!-- }}} -->
55
53

...
...
@@ -61,9 +59,9 @@
61
59
&language.predefined.closure.bind;
62
60
&language.predefined.closure.bindto;
63
61
&language.predefined.closure.call;
62
+
&language.predefined.closure.fromcallable;
64
63

65
64
</phpdoc:classref>
66
-

67
65
<!-- Keep this comment at the end of the file
68
66
Local variables:
69
67
mode: sgml
70
68