API16

JStream/ construct: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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  


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JStream/__construct|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JStream/__construct}}
 
 


===Syntax===
===Syntax===
Line 46: Line 44:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JStream/__construct|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JStream/__construct}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=__construct
  category=__construct
  category=JStream
  category=JStream
  category=CodeExample
  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