# The COMPersistHelper class

(PHP 5, PHP 7, PHP 8)

## Einführung

COMPersistHelper improves the interoperability of COM and PHP with regard to the php.ini directive open_basedir, and stream Ressources.

## Klassenbeschreibung

final class COMPersistHelper {
/* Methoden */
public function __construct(?variant `$variant` = `null`)
public function GetCurFileName(): string|false
public function GetMaxStreamSize(): int
public function InitNew(): bool
public function LoadFromFile(string `$filename`, int `$flags` = 0): bool
public function LoadFromStream(resource `$stream`): bool
public function SaveToFile(?string `$filename`, bool `$remember` = `true`): bool
public function SaveToStream(resource `$stream`): bool
}

## Inhaltsverzeichnis

- COMPersistHelper::__construct — Construct a COMPersistHelper object
- COMPersistHelper::GetCurFileName — Get current filename
- COMPersistHelper::GetMaxStreamSize — Get maximum stream size
- COMPersistHelper::InitNew — Initialize object to default state
- COMPersistHelper::LoadFromFile — Load object from file
- COMPersistHelper::LoadFromStream — Load object from stream
- COMPersistHelper::SaveToFile — Save object to file
- COMPersistHelper::SaveToStream — Save object to stream

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open