You are here

function cmisStreamAsString::__toString in CMIS API 7

Return the entire stream contents as a string.

Note that this function will rewind the stream.

File

cmis_common/cmis_common.module, line 170

Class

cmisStreamAsString
A class to hold a reference to a stream, but that can pretend to be a string.

Code

function __toString() {

  // Rewind our stream.
  rewind($this->stream);
  return stream_get_contents($this->stream);
}