Documentation

multipartStream
in package
implements streamInterface Uses aStreamDecoratorTrait

Interfaces, Classes, Traits and Enums

streamInterface
Describes a data stream.

Table of Contents

$boundary  : mixed
__call()  : mixed
__construct()  : mixed
__get()  : mixed
__toString()  : mixed
close()  : mixed
detach()  : mixed
eof()  : mixed
getBoundary()  : mixed
getContents()  : mixed
getMetadata()  : mixed
getSize()  : mixed
isReadable()  : mixed
isSeekable()  : mixed
isWritable()  : bool
Returns whether or not the stream is writable.
read()  : mixed
rewind()  : mixed
seek()  : mixed
tell()  : mixed
write()  : mixed
createStream()  : mixed
addElement()  : mixed
createElement()  : mixed
getHeader()  : mixed
getHeaders()  : mixed

Properties

Methods

__call()

public __call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
$method : mixed
$args : array<string|int, mixed>
Return values
mixed

__construct()

public __construct([array<string|int, mixed> $elements = [] ][, mixed $boundary = null ]) : mixed
Parameters
$elements : array<string|int, mixed> = []
$boundary : mixed = null
Return values
mixed

getMetadata()

public getMetadata([mixed $key = null ]) : mixed
Parameters
$key : mixed = null
Return values
mixed

isWritable()

Returns whether or not the stream is writable.

public isWritable() : bool
Return values
bool

read()

public read(mixed $length) : mixed
Parameters
$length : mixed
Return values
mixed

seek()

public seek(mixed $offset[, mixed $whence = SEEK_SET ]) : mixed
Parameters
$offset : mixed
$whence : mixed = SEEK_SET
Return values
mixed

write()

public write(mixed $string) : mixed
Parameters
$string : mixed
Return values
mixed

createStream()

protected createStream(array<string|int, mixed> $elements) : mixed
Parameters
$elements : array<string|int, mixed>
Return values
mixed

addElement()

private addElement(appendStream $stream, array<string|int, mixed> $element) : mixed
Parameters
$stream : appendStream
$element : array<string|int, mixed>
Return values
mixed

createElement()

private createElement(mixed $name, streamInterface $stream, mixed $filename, array<string|int, mixed> $headers) : mixed
Parameters
$name : mixed
$stream : streamInterface
$filename : mixed
$headers : array<string|int, mixed>
Return values
mixed

getHeader()

private getHeader(array<string|int, mixed> $headers, mixed $key) : mixed
Parameters
$headers : array<string|int, mixed>
$key : mixed
Return values
mixed

getHeaders()

private getHeaders(array<string|int, mixed> $headers) : mixed
Parameters
$headers : array<string|int, mixed>
Return values
mixed

Search results