JStream/ construct: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 45: | Line 45: | ||
===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