PHP 8.1.31 Released!

The PharFileInfo class

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)

Вступ

The PharFileInfo class provides a high-level interface to the contents and attributes of a single file within a phar archive.

Короткий огляд класу

class PharFileInfo extends SplFileInfo {
/* Методи */
public __construct(string $filename)
public chmod(int $perms): void
public compress(int $compression): bool
public decompress(): bool
public delMetadata(): bool
public getCRC32(): int
public getContent(): string
public getMetadata(array $unserializeOptions = []): mixed
public getPharFlags(): int
public hasMetadata(): bool
public isCRCChecked(): bool
public isCompressed(?int $compression = null): bool
public setMetadata(mixed $metadata): void
public __destruct()
/* Успадковані методи */
public SplFileInfo::getBasename(string $suffix = ""): string
public SplFileInfo::setFileClass(string $class = SplFileObject::class): void
public SplFileInfo::setInfoClass(string $class = SplFileInfo::class): void
}

Зміст

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top