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> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public static | + | public static function copy ( |
+ | $src | ||
+ | $dest | ||
+ | $path=null | ||
+ | $use_streams=false | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 42: | Line 44: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' boolean True on success | |
− | boolean True on success | + | * '''Defined''' on line 77 of libraries/joomla/filesystem/file.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/filesystem/file.php | + | * '''Referenced by''' |
− | * | + | ** [[API17:JInstaller::copyFiles|JInstaller::copyFiles]] |
− | + | ** [[API17:JArchive::extract|JArchive::extract]] | |
− | * [[JInstaller::copyFiles | ||
− | * [[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> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 65: | Line 67: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <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.
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 |
- Returns boolean True on success
- Defined on line 77 of libraries/joomla/filesystem/file.php
- Since
- Referenced by
See also[edit]
- JFile::copy source code on BitBucket
- Class JFile
- Subpackage Filesystem
- Other versions of JFile::copy
Template:SeeAlso:JFile::copy [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />