php8.5
Home/ Manual/ com / compersisthelper/ COMPersistHelper::__construct

COMPersistHelper::__construct

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Construct a COMPersistHelper object

Description

COMPersistHelper::__construct(variant|null $variant = null)

Constructs a persistence helper object, usually associated with a variant.

Parameters

variant

A COM object which implements IDispatch. To be able to successfully call any of COMPersistHelper's methods, the object has to implement IPersistFile, IPersistStream and/or IPersistStreamInit.

Passing null as variant is only useful if the object is to be loaded from a stream by calling COMPersistHelper::LoadFromStream.

Source: reference/com/compersisthelper/construct.xml · from the official PHP manual (php/doc-en)