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 clean up |
||
| Line 2: | Line 2: | ||
Constructor | Constructor | ||
{{Description:JStream/__construct}} | |||
{{subst:Description:JStream/__construct}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 46: | Line 44: | ||
</source> | </source> | ||
{{subst:SeeAlso:JStream/__construct}} | |||
{{SeeAlso:JStream/__construct}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:26, 24 March 2017
Description
Constructor
{{subst:Description:JStream/__construct}}
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();
}
{{subst:SeeAlso:JStream/__construct}}
Examples
<CodeExamplesForm />