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.

类摘要

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 getCompressedSize ( ) : int
public getContent ( ) : string
public getMetadata ( array $unserializeOptions = [] ) : mixed
public getPharFlags ( ) : int
public hasMetadata ( ) : bool
public isCRCChecked ( ) : bool
public isCompressed ( int|null $compression = null ) : bool
public setMetadata ( mixed $metadata ) : void
/* 继承的方法 */
public SplFileInfo::getATime ( ) : int|false
public SplFileInfo::getBasename ( string $suffix = "" ) : string
public SplFileInfo::getCTime ( ) : int
public SplFileInfo::getExtension ( ) : string
public SplFileInfo::getFileInfo ( string|null $class = null ) : SplFileInfo
public SplFileInfo::getFilename ( ) : string
public SplFileInfo::getGroup ( ) : int|false
public SplFileInfo::getInode ( ) : int|false
public SplFileInfo::getLinkTarget ( ) : string|false
public SplFileInfo::getMTime ( ) : int|false
public SplFileInfo::getOwner ( ) : int|false
public SplFileInfo::getPath ( ) : string
public SplFileInfo::getPathInfo ( string|null $class = null ) : SplFileInfo|null
public SplFileInfo::getPathname ( ) : string
public SplFileInfo::getPerms ( ) : int|false
public SplFileInfo::getRealPath ( ) : string|false
public SplFileInfo::getSize ( ) : int|false
public SplFileInfo::getType ( ) : string|false
public SplFileInfo::isDir ( ) : bool
public SplFileInfo::isExecutable ( ) : bool
public SplFileInfo::isFile ( ) : bool
public SplFileInfo::isLink ( ) : bool
public SplFileInfo::isReadable ( ) : bool
public SplFileInfo::isWritable ( ) : bool
public SplFileInfo::openFile ( string $mode = "r" , bool $useIncludePath = false , resource|null $context = null ) : SplFileObject
public SplFileInfo::setFileClass ( string $class = SplFileObject::class ) : void
public SplFileInfo::setInfoClass ( string $class = SplFileInfo::class ) : void
public SplFileInfo::__toString ( ) : string
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.
PHP8中文手册 站长在线 整理 版权归PHP文档组所有