You are here

static function cmisStreamAsString::temporaryStream in CMIS API 7

Create a new temporary stream and wrap it in the cmisStreamAsString class.

1 call to cmisStreamAsString::temporaryStream()
cmis_common_cmis_invoke in cmis_common/cmis_common.module
Implementation of hook_cmis_invoke($url, $properties, $settings)

File

cmis_common/cmis_common.module, line 160

Class

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

Code

static function temporaryStream() {
  $stream = fopen('php://temp', 'r+');
  return new cmisStreamAsString($stream);
}