lib/private/Files/ObjectStore/StorageObjectStore.php
/**
	 * @param string $urn the unified resource name used to identify the object
	 * @param resource $stream stream with the data to write
	 * @throws \Exception when something goes wrong, message will be logged
	 * @since 7.0.0
	 */
@param string $urn the unified resource name used to identify the object
@param resource $stream stream with the data to write
@throws \Exception when something goes wrong, message will be logged
@since 7.0.0
@param string $urn the unified resource name used to identify the object @param resource $stream stream with the data to write @throws \ Exception when something goes wrong message will be logged @since 7 . 0 . 0
function writeObject($urn, $stream) {
		$handle = $this->storage->fopen($urn, 'w');
		if ($handle) {
			stream_copy_to_stream($stream, $handle);
			fclose($handle);
		} else {
			throw new \Exception();
		}
	}
function writeObject ( $ urn , $ stream ) { $ handle = $ this -> storage -> fopen ( $ urn , 'w' ) ; if ( $ handle ) { stream_copy_to_stream ( $ stream , $ handle ) ; fclose ( $ handle ) ; } else { throw new \ Exception ( ) ; } }
@param string $urn the unified resource name used to identify the object
 @param resource $stream stream with the data to write
 @throws \Exception when something goes wrong, message will be logged
 @since 7.0.0
@param string $urn the unified resource name used to identify the object @param resource $stream stream with the data to write @throws \ Exception when something goes wrong message will be logged @since 7 . 0 . 0