PHP Класс TestPhpInputStream

Автор: Jaroslav Hanslík
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
register ( ) : boolean Registers protocol.
setContent ( string $content ) Sets content.
stream_close ( ) : boolean Closes file.
stream_eof ( ) : boolean Determines if we have reached the end of the file.
stream_open ( string $path, string $mode, integer $options, string &$openedPath ) : boolean Opens file.
stream_read ( integer $length ) : string Reads from file.
stream_stat ( ) : array Returns information about the file.
unregister ( ) : boolean Unregisters protocol.

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

register() публичный статический Метод

Registers protocol.
public static register ( ) : boolean
Результат boolean

setContent() публичный статический Метод

Sets content.
public static setContent ( string $content )
$content string Content

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

Closes file.
public stream_close ( ) : boolean
Результат boolean

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

Determines if we have reached the end of the file.
public stream_eof ( ) : boolean
Результат boolean

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

Opens file.
public stream_open ( string $path, string $mode, integer $options, string &$openedPath ) : boolean
$path string File path
$mode string File mode
$options integer Options
$openedPath string Opened path
Результат boolean

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

Reads from file.
public stream_read ( integer $length ) : string
$length integer Read length
Результат string

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

Returns information about the file.
public stream_stat ( ) : array
Результат array

unregister() публичный статический Метод

Unregisters protocol.
public static unregister ( ) : boolean
Результат boolean