abstract class AbstractStreamWriter implements WriterInterface

Class AbstractStreamWriter

Properties

protected $tmpFile

Methods

__construct(resource $stream = null)

Constructor

setStream(mixed $stream)

Set Stream Resource

resource
getStream()

Get underlying stream resource

mixed
prepare()

Prepare the writer before writing the items

$this
finish()

Wrap up the writer after all items have been written

setCloseStreamOnFinish(bool $closeStreamOnFinish = true)

Should underlying stream be closed on finish?

bool
getCloseStreamOnFinish()

Is Stream closed on finish?

static string
convertCollection(mixed $collection)

No description

mixed
writeCollection(mixed $collection)

No description

string
writeCustomCollection(mixed $collection)

No description

Details

at line 32
__construct(resource $stream = null)

Constructor

Parameters

resource $stream

at line 49
AbstractStreamWriter setStream(mixed $stream)

Set Stream Resource

Parameters

mixed $stream

Return Value

AbstractStreamWriter

at line 68
resource getStream()

Get underlying stream resource

Return Value

resource

at line 81
mixed prepare()

Prepare the writer before writing the items

Return Value

mixed

at line 89
$this finish()

Wrap up the writer after all items have been written

Return Value

$this

at line 105
AbstractStreamWriter setCloseStreamOnFinish(bool $closeStreamOnFinish = true)

Should underlying stream be closed on finish?

Parameters

bool $closeStreamOnFinish

Return Value

AbstractStreamWriter

at line 117
bool getCloseStreamOnFinish()

Is Stream closed on finish?

Return Value

bool

at line 127
static string convertCollection(mixed $collection)

Parameters

mixed $collection

Return Value

string

at line 145
mixed writeCollection(mixed $collection)

Parameters

mixed $collection

Return Value

mixed

at line 160
string writeCustomCollection(mixed $collection)

Parameters

mixed $collection

Return Value

string