Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Stream Class Reference

Implementation of PSR HTTP streams. More...

Public Member Functions

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

Protected Attributes

 $resource
 
 $stream
 

Detailed Description

Implementation of PSR HTTP streams.

Constructor & Destructor Documentation

__construct (   $stream,
  $mode = 'r' 
)
Parameters
string | resource$stream
string$modeMode with which to open stream
Exceptions
InvalidArgumentException

Member Function Documentation

__toString ( )

{}

attach (   $resource,
  $mode = 'r' 
)

Attach a new stream/resource to the instance.

Parameters
string | resource$resource
string$mode
Exceptions
InvalidArgumentExceptionfor stream identifier that cannot be cast to a resource
InvalidArgumentExceptionfor non-resource stream
close ( )

{}

detach ( )

{}

eof ( )

{}

getContents ( )

{}

getMetadata (   $key = null)

{}

getSize ( )

{}

isReadable ( )

{}

isSeekable ( )

{}

isWritable ( )

{}

read (   $length)

{}

rewind ( )

{}

seek (   $offset,
  $whence = SEEK_SET 
)

{}

tell ( )

{}

write (   $string)

{}

Member Data Documentation

$resource
protected
$stream
protected