COM 및 .Net(Windows) COMPersistHelper 클래스
(PHP 5, PHP 7, PHP 8)
소개
COMPersistHelper는 php.ini 지시문 open_basedir 및 스트림 리소스와 관련하여 COM과 PHP의 상호 운용성을 향상시킵니다.
클래스 개요
final class COMPersistHelper {
/* Methods */
public __construct(?variant $variant = null)
public GetCurFileName(): string|false
public GetMaxStreamSize(): int
public InitNew(): bool
public LoadFromFile(string $filename, int $flags = 0): bool
public LoadFromStream(resource $stream): bool
public SaveToFile(?string $filename, bool $remember = true): bool
public SaveToStream(resource $stream): bool
}
목차
- COMPersistHelper::__construct — COMPersistHelper 객체 생성
- COMPersistHelper::GetCurFileName — 현재 파일 이름 가져오기
- COMPersistHelper::GetMaxStreamSize — 최대 스트림 크기 가져오기
- COMPersistHelper::InitNew — 객체를 기본 상태로 초기화
- COMPersistHelper::LoadFromFile — 파일에서 객체 로드
- COMPersistHelper::LoadFromStream — 스트림에서 객체 로드
- COMPersistHelper::SaveToFile — 파일에 개체 저장
- COMPersistHelper::SaveToStream — 스트림에 개체 저장