reference/phar/Phar/buildFromDirectory.xml
f03806fcd8fe03a0501bd40b6e3939ff6589a1d2
...
...
@@ -3,15 +3,15 @@
3
3
<refentry xml:id="phar.buildfromdirectory" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
<refnamediv>
5
5
<refname>Phar::buildFromDirectory</refname>
6
-
<refpurpose>Construct a phar archive from the files within a directory.</refpurpose>
6
+
<refpurpose>Construct a phar archive from the files within a directory</refpurpose>
7
7
</refnamediv>
8
8

9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
-
<methodsynopsis>
11
+
<methodsynopsis role="Phar">
12
12
<modifier>public</modifier> <type>array</type><methodname>Phar::buildFromDirectory</methodname>
13
-
<methodparam><type>string</type><parameter>base_dir</parameter></methodparam>
14
-
<methodparam choice="opt"><type>string</type><parameter>regex</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
14
+
<methodparam choice="opt"><type>string</type><parameter>pattern</parameter><initializer>""</initializer></methodparam>
15
15
</methodsynopsis>
16
16
&phar.write;
17
17
<para>
...
...
@@ -27,7 +27,7 @@
27
27
<para>
28
28
<variablelist>
29
29
<varlistentry>
30
-
<term><parameter>base_dir</parameter></term>
30
+
<term><parameter>directory</parameter></term>
31
31
<listitem>
32
32
<para>
33
33
The full or relative path to the directory that contains all files
...
...
@@ -36,7 +36,7 @@
36
36
</listitem>
37
37
</varlistentry>
38
38
<varlistentry>
39
-
<term><parameter>regex</parameter></term>
39
+
<term><parameter>pattern</parameter></term>
40
40
<listitem>
41
41
<para>
42
42
An optional pcre regular expression that is used to filter the
...
...
@@ -68,6 +68,28 @@
68
68
</para>
69
69
</refsect1>
70
70

71
+
<refsect1 role="changelog">
72
+
&reftitle.changelog;
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>8.1.0</entry>
84
+
<entry>
85
+
<methodname>Phar::buildFromDirectory</methodname> no longer returns &false;.
86
+
</entry>
87
+
</row>
88
+
</tbody>
89
+
</tgroup>
90
+
</informaltable>
91
+
</refsect1>
92
+

71
93
<refsect1 role="examples">
72
94
&reftitle.examples;
73
95
<example>
...
...
@@ -106,7 +128,6 @@ $phar2->setStub($phar->createDefaultStub('cli/index.php', 'www/index.php'));
106
128
</refsect1>
107
129

108
130
</refentry>
109
-

110
131
<!-- Keep this comment at the end of the file
111
132
Local variables:
112
133
mode: sgml
113
134