COMPersistHelper::SaveToStream
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Save object to stream
Description
COMPersistHelper::SaveToStream(resource $stream): bool
Saves an object to the specified stream.
Parameters
streamThe stream Resource to which to save the object.
Return Values
Success
Errors/Exceptions
A com_exception is thrown if the associated object does neither implement the COM interface IPersistStream nor IPersistStreamInit, or when calling the IPersistStream::Save method failed.