CodeIgniter v4.7 API

PhpStreamWrapper
in package

FinalYes

StreamWrapper for php protocol

This class is used for mocking php://stdin.

See https://www.php.net/manual/en/class.streamwrapper.php

Table of Contents

Properties

$context  : resource|null
$content  : string
$position  : int

Methods

register()  : void
restore()  : void
setContent()  : void
stream_cast()  : false
Returns `false`, since the stream has no descriptor.
stream_eof()  : bool
stream_open()  : bool
stream_read()  : string
stream_stat()  : array{}

Properties

Methods

setContent()

public static setContent(string $content) : void
Parameters
$content : string

stream_cast()

Returns `false`, since the stream has no descriptor.

public stream_cast() : false
Return values
false

stream_read()

public stream_read(int $count) : string
Parameters
$count : int
Return values
string
On this page

Search results