Documentation

Xsl_Stream_Lang
in package

Implement "lang://" protocol

Use to add DTD depends on site language

or
Tags
subpackage

Xsl

version
7.x
author

Hostmake LLC

copyright

© 2005-2024 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

Properties

$context  : resource|null
The current context, or null if no context was passed to the caller function.
$_aDTD  : array<string|int, mixed>
Array of DTDs
$_oXsl  : Xsl_Model
XSL
$_position  : int
Current position of a stream
$_xslName  : string
XSL name

Methods

stream_eof()  : Should
Tests for end-of-file on a file pointer
stream_open()  : bool
Opens file or URL
stream_read()  : string
Read from stream
stream_seek()  : bool
Seeks to specific location in a stream
stream_tell()  : int
Retrieve the current position of a stream
stream_write()  : false
Write to stream
url_stat()  : array<string|int, mixed>
Retrieve information about a file

Properties

$context

The current context, or null if no context was passed to the caller function.

public resource|null $context

$_aDTD

Array of DTDs

protected static array<string|int, mixed> $_aDTD = array()

$_position

Current position of a stream

protected int $_position = 0

$_xslName

XSL name

protected string $_xslName = \NULL

Methods

stream_eof()

Tests for end-of-file on a file pointer

public stream_eof() : Should
Return values
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.

stream_open()

Opens file or URL

public stream_open(string $path, string $mode, string $options, string &$opened_path) : bool
Parameters
$path : string

Specifies the URL that was passed to the original function.

$mode : string

The mode used to open the file, as detailed for fopen().

$options : string

Holds additional flags set by the streams API.

$opened_path : string
Return values
bool

stream_read()

Read from stream

public stream_read(int $count) : string
Parameters
$count : int

How many bytes of data from the current position should be returned.

Return values
string

stream_seek()

Seeks to specific location in a stream

public stream_seek(int $offset, int $whence) : bool
Parameters
$offset : int

The stream offset to seek to.

$whence : int

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.

Return values
bool

Return TRUE if the position was updated, FALSE otherwise.

stream_tell()

Retrieve the current position of a stream

public stream_tell() : int
Return values
int

Current position of the stream

stream_write()

Write to stream

public stream_write(string $data) : false
Parameters
$data : string

Should be stored into the underlying stream.

Return values
false

url_stat()

Retrieve information about a file

public url_stat(string $path, string $flags) : array<string|int, mixed>
Parameters
$path : string

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 : string

Holds additional flags set by the streams API.

Return values
array<string|int, mixed>

        
On this page

Search results