AbstractStreamWriter
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
at line 49
AbstractStreamWriter
setStream(mixed $stream)
Set Stream Resource
at line 68
resource
getStream()
Get underlying stream resource
at line 81
mixed
prepare()
Prepare the writer before writing the items
at line 89
$this
finish()
Wrap up the writer after all items have been written
at line 105
AbstractStreamWriter
setCloseStreamOnFinish(bool $closeStreamOnFinish = true)
Should underlying stream be closed on finish?
at line 117
bool
getCloseStreamOnFinish()
Is Stream closed on finish?