PHP Класс pchStringStream, php-commit-hooks

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$length integer Cached length of the string
$position integer Current position inside the string
$string string String, wrapped by the stream

Открытые методы

Метод Описание
stream_eof ( ) : boolean Has the stream reached its end?
stream_open ( string $path, string $mode, mixed $options, mixed &$opened_path ) : boolean Open stream
stream_read ( integer $count ) : string Read from stream
stream_seek ( integer $offset, integer $whence ) : boolean Seek to a defined position in the string
stream_stat ( ) : void Returns information about the stream
stream_tell ( ) : integer Tell current stream position
stream_write ( string $data ) : integer Write to stream

Описание методов

stream_eof() публичный Метод

Has the stream reached its end?
public stream_eof ( ) : boolean
Результат boolean

stream_open() публичный Метод

Open stream
public stream_open ( string $path, string $mode, mixed $options, mixed &$opened_path ) : boolean
$path string
$mode string
$options mixed
$opened_path mixed
Результат boolean

stream_read() публичный Метод

Read from stream
public stream_read ( integer $count ) : string
$count integer
Результат string

stream_seek() публичный Метод

Seek to a defined position in the string
public stream_seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
Результат boolean

stream_stat() публичный Метод

Returns information about the stream
public stream_stat ( ) : void
Результат void

stream_tell() публичный Метод

Tell current stream position
public stream_tell ( ) : integer
Результат integer

stream_write() публичный Метод

Write to stream
public stream_write ( string $data ) : integer
$data string
Результат integer

Описание свойств

$length защищенное свойство

Cached length of the string
protected int $length
Результат integer

$position защищенное свойство

Current position inside the string
protected int $position
Результат integer

$string защищенное свойство

String, wrapped by the stream
protected string $string
Результат string