API16

JBuffer/stream open: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 49: Line 49:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=stream_open
  category=stream_open
  category=JBuffer
  category=JBuffer
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:20, 25 March 2017

<! removed transcluded page call, red link never existed >

Syntax

stream_open($path, $mode, $options, &$opened_path)
Parameter Name Default Value Description
$path
$mode
$options
&$opened_path

Defined in

libraries/joomla/utilities/buffer.php

Importing

jimport( 'joomla.utilities.buffer' );

Source Body

function stream_open($path, $mode, $options, & $opened_path)
{
        $url = parse_url($path);
        $this->name = $url["host"];
        $this->_buffers[$this->name] = null;
        $this->position = 0;

        return true;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples