Actions

API17

Difference between revisions of "JFile::write"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFile::write|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile::write|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</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 38:
 
|-
 
|-
 
|}
 
|}
===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 (line 310)
+
* '''Referenced by'''
* see source code in [[jplatform:filesystem/file.php#cl-310|BitBucket]]
+
** [[JArchiveZip::_createZIPFile/11.1|JArchiveZip::_createZIPFile]]
===Referenced by===
+
** [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]]
* [[JArchiveZip::_createZIPFile/11.1|JArchiveZip::_createZIPFile]]
+
** [[JArchiveZip::_extractNative/11.1|JArchiveZip::_extractNative]]
* [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]]
+
** [[JInstallerHelper::downloadPackage/11.1|JInstallerHelper::downloadPackage]]
* [[JArchiveZip::_extractNative/11.1|JArchiveZip::_extractNative]]
+
** [[JArchiveTar::extract/11.1|JArchiveTar::extract]]
* [[JInstallerHelper::downloadPackage/11.1|JInstallerHelper::downloadPackage]]
+
** [[JPath::isOwner/11.1|JPath::isOwner]]
* [[JArchiveTar::extract/11.1|JArchiveTar::extract]]
+
* [[JPath::isOwner/11.1|JPath::isOwner]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JFile::write source code''' on [[jplatform:filesystem/file.php#cl-315|BitBucket]]
 +
* {{JVer|11.1}} Class [[JFile/11.1|JFile]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]]
 +
* [[JFile::write|Other versions of JFile::write]]
 +
{{SeeAlso:JFile::write}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFile::write|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFile::write|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JFile/11.1|JFile]]
+
===User contributed notes===
* [[JFile::write|Other versions of this method]]
+
{{SeeAlso:JFile::write}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 64: Line 65:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JFile]][[Category:JFile::write]]</noinclude>
 
<noinclude>[[Category:JFile]][[Category:JFile::write]]</noinclude>

Revision as of 20:56, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JFile::write

Description

Write contents to a file.

Description:JFile::write [Edit Descripton]

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

SeeAlso:JFile::write [Edit See Also]

User contributed notes

<CodeExamplesForm />