PHP Class Phly\Http\Stream

Inheritance: implements Psr\Http\Message\StreamableInterface
Afficher le fichier Open project: phly/http Class Usage Examples

Protected Properties

Свойство Type Description
$resource resource
$stream string | resource

Méthodes publiques

Méthode Description
__construct ( string | resource $stream, string $mode = 'r' )
__toString ( )
attach ( string | resource $resource, string $mode = 'r' ) Attach a new stream/resource to the instance.
close ( )
detach ( )
eof ( )
getContents ( )
getMetadata ( $key = null )
getSize ( )
isReadable ( )
isSeekable ( )
isWritable ( )
read ( $length )
rewind ( )
seek ( $offset, $whence = SEEK_SET )
tell ( )
write ( $string )

Method Details

__construct() public méthode

public __construct ( string | resource $stream, string $mode = 'r' )
$stream string | resource
$mode string Mode with which to open stream

__toString() public méthode

public __toString ( )

attach() public méthode

Attach a new stream/resource to the instance.
public attach ( string | resource $resource, string $mode = 'r' )
$resource string | resource
$mode string

close() public méthode

public close ( )

detach() public méthode

public detach ( )

eof() public méthode

public eof ( )

getContents() public méthode

public getContents ( )

getMetadata() public méthode

public getMetadata ( $key = null )

getSize() public méthode

public getSize ( )

isReadable() public méthode

public isReadable ( )

isSeekable() public méthode

public isSeekable ( )

isWritable() public méthode

public isWritable ( )

read() public méthode

public read ( $length )

rewind() public méthode

public rewind ( )

seek() public méthode

public seek ( $offset, $whence = SEEK_SET )

tell() public méthode

public tell ( )

write() public méthode

public write ( $string )

Property Details

$resource protected_oe property

protected resource $resource
Résultat resource

$stream protected_oe property

protected string|resource $stream
Résultat string | resource