JStream/ construct: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Constructor
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Constructor | Constructor | ||
===Syntax=== | ===Syntax=== | ||
| Line 46: | Line 44: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JStream | category=JStream | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:06, 25 March 2017
Description
Constructor
Syntax
__construct($writeprefix='', $readprefix='', $context=Array())
| Parameter Name | Default Value | Description |
|---|---|---|
| $writeprefix | Prefix of the stream; Note: unlike the JPATH_*, this has a final path seperator! | |
| $readprefix | ||
| $context | Array() |
Defined in
libraries/joomla/filesystem/stream.php
Importing
jimport( 'joomla.filesystem.stream' );
Source Body
function __construct($writeprefix='', $readprefix='', $context=Array())
{
$this->writeprefix = $writeprefix;
$this->readprefix = $readprefix;
$this->_contextOptions = $context;
$this->_buildContext();
}
Examples
Code Examples