API17

JFile::write: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Write contents to a file.  
Write contents to a file.  


{{Description:JFile::write}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JFile::write|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Since===
{{JVer|11.1 }}
===Synopsis===
<source lang="php">
<source lang="php">
public static JFile::write ($file, &$buffer, $use_streams=false)
public static function write (
        $file
        &$buffer
        $use_streams=false
)
</source>
</source>
{| class="wikitable"
{| class="wikitable"
Line 37: Line 36:
|-
|-
|}
|}
===Returns===
* '''Returns''' boolean True on success
boolean True on success
* '''Defined''' on line 323 of libraries/joomla/filesystem/file.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php
* '''Referenced by'''
===Referenced by===
** [[API17:JArchiveZip::_createZIPFile|JArchiveZip::_createZIPFile]]
* [[JArchiveZip/_createZIPFile/11.1|JArchiveZip::_createZIPFile]]
** [[API17:JArchiveZip::_extract|JArchiveZip::_extract]]
* [[JArchiveZip/_extract/11.1|JArchiveZip::_extract]]
** [[API17:JArchiveZip::_extractNative|JArchiveZip::_extractNative]]
* [[JArchiveZip/_extractNative/11.1|JArchiveZip::_extractNative]]
** [[API17:JInstallerHelper::downloadPackage|JInstallerHelper::downloadPackage]]
* [[JInstallerHelper/downloadPackage/11.1|JInstallerHelper::downloadPackage]]
** [[API17:JArchiveTar::extract|JArchiveTar::extract]]
* [[JArchiveTar/extract/11.1|JArchiveTar::extract]]
** [[API17:JPath::isOwner|JPath::isOwner]]
* [[JPath/isOwner/11.1|JPath::isOwner]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JFile::write source code''' on [[jplatform:filesystem/file.php#cl-315|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JFile::write|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JFile|JFile]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]]
* [[JFile/11.1|JFile]]
* [[API17:JFile::write|Other versions of JFile::write]]
* [[JFile::write|Other versions of this method]]
 
{{SeeAlso:JFile::write}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JFile::write
category=JFile::write
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JFile]][[Category:JFile::write]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:01, 25 March 2017

Joomla 11.1 JFile::write

Description

Write contents to a file.


public static function write (
        $file
        &$buffer
        $use_streams=false
)
Parameter Type Default Description
$file string The full file path
&$buffer string $buffer The buffer to write
$use_streams false

See also


User contributed notes

Code Examples