API17

Difference between revisions of "JFile::copy"

From Joomla! Documentation

(Layout updates)
m (moving preparation)
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFile::copy|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile::copy|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JFile::copy ($src, $dest, $path=null, $use_streams=false)
+
public static function copy (
 +
        $src
 +
        $dest
 +
        $path=null
 +
        $use_streams=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 42: Line 44:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True on success
boolean True on success
+
* '''Defined''' on line 77 of libraries/joomla/filesystem/file.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php (line 76)
+
* '''Referenced by'''
* see source code in [[jplatform:filesystem/file.php#cl-76|BitBucket]]
+
** [[API17:JInstaller::copyFiles|JInstaller::copyFiles]]
===Referenced by===
+
** [[API17:JArchive::extract|JArchive::extract]]
* [[JInstaller::copyFiles/11.1|JInstaller::copyFiles]]
 
* [[JArchive::extract/11.1|JArchive::extract]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JFile::copy source code''' on [[jplatform:filesystem/file.php#cl-69|BitBucket]]
 +
* {{JVer|11.1}} Class [[API17:JFile|JFile]]
 +
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]]
 +
* [[API17:JFile::copy|Other versions of JFile::copy]]
 +
{{SeeAlso:JFile::copy}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFile::copy|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFile::copy|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JFile/11.1|JFile]]
+
===User contributed notes===
* [[JFile::copy|Other versions of this method]]
 
{{SeeAlso:JFile::copy}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 65: Line 67:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JFile]][[Category:JFile::copy]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:39, 11 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JFile::copy[edit]

Description[edit]

Copies a file.

Template:Description:JFile::copy [Edit Descripton]

public static function copy (
        $src
        $dest
        $path=null
        $use_streams=false
)
Parameter Type Default Description
$src string The path to the source file
$dest string The path to the destination file
$path string null An optional base path to prefix to the file names
$use_streams false

See also[edit]

Template:SeeAlso:JFile::copy [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />