Class Xsl_Stream_Import
Implement "import://" protocol
Use to add
<xsl:include href="import://1"/>
or
<xsl:include href="import://xslname"/>
Package: HostCMS\Xsl
Copyright:
© 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author:
Hostmake LLC
Version:
6.x
Located at xsl/stream/import.php
Methods summary
public
boolean
|
#
stream_open( string $path, string $mode, string $options, string & $opened_path )
Opens file or URL
Parameters
- $path
- Specifies the URL that was passed to the original function.
- $mode
- The mode used to open the file, as detailed for fopen().
- $options
- Holds additional flags set by the streams API.
- $opened_path
Returns
boolean
|
public
string
|
#
stream_read( integer $count )
Read from stream
Parameters
- $count
- How many bytes of data from the current position should be returned.
Returns
string
|
public
false
|
#
stream_write( string $data )
Write to stream
Parameters
- $data
- Should be stored into the underlying stream.
Returns
false
|
public
integer
|
#
stream_tell( )
Retrieve the current position of a stream
Retrieve the current position of a stream
Returns
integer Current position of the stream
|
public
Should
|
#
stream_eof( )
Tests for end-of-file on a file pointer
Tests for end-of-file on a file pointer
Returns
Should return TRUE if the read/write position is at the end of the stream and if no more data is available to be read, or FALSE otherwise.
|
public
boolean
|
#
stream_seek( integer $offset, integer $whence )
Seeks to specific location in a stream
Seeks to specific location in a stream
Parameters
- $offset
- The stream offset to seek to.
- $whence
- Possible values: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset.
Returns
boolean Return TRUE if the position was updated, FALSE otherwise.
|
public
array
|
#
url_stat( string $path, string $flags )
Retrieve information about a file
Retrieve information about a file
Parameters
- $path
- The file path or URL to stat. Note that in the case of a URL, it must be a :// delimited URL. Other URL forms are not supported.
- $flags
- Holds additional flags set by the streams API.
Returns
array
|
Properties summary
protected
integer
|
$_position
Current position of a stream
Current position of a stream
|
|
protected
string
|
$_xslName
|
|
protected
Xsl_Model
|
$_oXsl
|
|
protected static
array
|
$_aXSL
|
|