reference/spl/globiterator/construct.xml
d51166ca16fda8e766849505b84f9306ef443f71
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="globiterator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>GlobIterator::__construct</refname>
...
...
@@ -9,11 +8,11 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<constructorsynopsis role="GlobIterator">
13
12
<modifier>public</modifier> <methodname>GlobIterator::__construct</methodname>
14
13
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
15
14
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO</initializer></methodparam>
16
-
</methodsynopsis>
15
+
</constructorsynopsis>
17
16
<para>
18
17
Constructs a new directory iterator from a glob expression.
19
18
</para>
...
...
@@ -44,6 +43,44 @@
44
43
</para>
45
44
</refsect1>
46
45

46
+
<refsect1 role="errors">
47
+
&reftitle.errors;
48
+
<para>
49
+
Throws an <classname>UnexpectedValueException</classname>
50
+
if the <parameter>directory</parameter> does not exist.
51
+
</para>
52
+
<para>
53
+
Throws a <classname>ValueError</classname>
54
+
if the <parameter>directory</parameter> is an empty string.
55
+
</para>
56
+
</refsect1>
57
+

58
+
<refsect1 role="changelog">
59
+
&reftitle.changelog;
60
+
<para>
61
+
<informaltable>
62
+
<tgroup cols="2">
63
+
<thead>
64
+
<row>
65
+
<entry>&Version;</entry>
66
+
<entry>&Description;</entry>
67
+
</row>
68
+
</thead>
69
+
<tbody>
70
+
<row>
71
+
<entry>8.0.0</entry>
72
+
<entry>
73
+
Now throws a <classname>ValueError</classname> if
74
+
<parameter>directory</parameter> is an empty string;
75
+
previously it threw a <classname>RuntimeException</classname>.
76
+
</entry>
77
+
</row>
78
+
</tbody>
79
+
</tgroup>
80
+
</informaltable>
81
+
</para>
82
+
</refsect1>
83
+

47
84
<refsect1 role="examples">
48
85
&reftitle.examples;
49
86
<para>
...
...
@@ -92,7 +129,6 @@ Matched 2 item(s)
92
129
</refsect1>
93
130

94
131
</refentry>
95
-

96
132
<!-- Keep this comment at the end of the file
97
133
Local variables:
98
134
mode: sgml
99
135