reference/filesystem/functions/copy.xml
ea62fb83196997032641b50fe44420305466195e
...
...
@@ -10,13 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>copy</methodname>
13
-
<methodparam><type>string</type><parameter>source</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>dest</parameter></methodparam>
15
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>from</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>to</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
-
Makes a copy of the file <parameter>source</parameter> to
19
-
<parameter>dest</parameter>.
18
+
Makes a copy of the file <parameter>from</parameter> to
19
+
<parameter>to</parameter>.
20
20
</para>
21
21
<para>
22
22
If you wish to move a file, use the <function>rename</function> function.
...
...
@@ -28,7 +28,7 @@
28
28
<para>
29
29
<variablelist>
30
30
<varlistentry>
31
-
<term><parameter>source</parameter></term>
31
+
<term><parameter>from</parameter></term>
32
32
<listitem>
33
33
<para>
34
34
Path to the source file.
...
...
@@ -36,10 +36,10 @@
36
36
</listitem>
37
37
</varlistentry>
38
38
<varlistentry>
39
-
<term><parameter>dest</parameter></term>
39
+
<term><parameter>to</parameter></term>
40
40
<listitem>
41
41
<para>
42
-
The destination path. If <parameter>dest</parameter> is a URL, the
42
+
The destination path. If <parameter>to</parameter> is a URL, the
43
43
copy operation may fail if the wrapper does not support overwriting of
44
44
existing files.
45
45
</para>
...
...
@@ -70,37 +70,6 @@
70
70
</para>
71
71
</refsect1>
72
72

73
-
<refsect1 role="changelog">
74
-
&reftitle.changelog;
75
-
<para>
76
-
<informaltable>
77
-
<tgroup cols="2">
78
-
<thead>
79
-
<row>
80
-
<entry>&Version;</entry>
81
-
<entry>&Description;</entry>
82
-
</row>
83
-
</thead>
84
-
<tbody>
85
-
<row>
86
-
<entry>5.3.4</entry>
87
-
<entry>
88
-
Changed the <parameter>context</parameter> parameter to actually have an effect.
89
-
Previously, any <parameter>context</parameter> was ignored.
90
-
</entry>
91
-
</row>
92
-
<row>
93
-
<entry>5.3.0</entry>
94
-
<entry>
95
-
Added context support.
96
-
</entry>
97
-
</row>
98
-
</tbody>
99
-
</tgroup>
100
-
</informaltable>
101
-
</para>
102
-
</refsect1>
103
-

104
73
<refsect1 role="examples">
105
74
&reftitle.examples;
106
75
<para>
107
76