Difference between revisions of "JStreamString/stream open"
From Joomla! Documentation
< API16:JStreamString
(New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JStreamString/...) |
|||
Line 27: | Line 27: | ||
| | | | ||
|- | |- | ||
− | | | + | | &$opened_path |
| | | | ||
| | | |
Revision as of 05:12, 30 March 2010
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Template:Description:JStreamString/stream open
Syntax[edit]
stream_open($path, $mode, $options, &$opened_path)
Parameter Name | Default Value | Description |
---|---|---|
$path | ||
$mode | ||
$options | ||
&$opened_path |
Defined in[edit]
libraries/joomla/filesystem/streams/string.php
Importing[edit]
jimport( 'joomla.filesystem.streams.string' );
Source Body[edit]
function stream_open($path, $mode, $options, &$opened_path)
{
$this->_currentstring =& JStringController::getRef(str_replace('string://','',$path));
if($this->_currentstring)
{
$this->_len = strlen($this->_currentstring);
$this->_pos = 0;
$this->_stat = $this->url_stat($path, 0);
return true;
}
else {
return false;
}
}
[Edit See Also] Template:SeeAlso:JStreamString/stream open
Examples[edit]
<CodeExamplesForm />