JStream/setContextOptions: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 35: | Line 35: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setContextOptions | category=setContextOptions | ||
category=JStream | category=JStream | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:07, 25 March 2017
Description
Updates the context to the array Format is the same as the options for stream_context_create
Syntax
setContextOptions($context)
| Parameter Name | Default Value | Description |
|---|---|---|
| $context | Options to create the context with |
Defined in
libraries/joomla/filesystem/stream.php
Importing
jimport( 'joomla.filesystem.stream' );
Source Body
function setContextOptions($context)
{
$this->_contextOptions = $context;
$this->_buildContext();
}
Examples
Code Examples