The SplFileInfo class

(PHP 5 >= 5.1.2, PHP 7)

简介

The SplFileInfo class offers a high-level object oriented interface to information for an individual file.

类摘要

SplFileInfo {
/* 方法 */
public __construct ( string $file_name )
public getATime ( void ) : int
public getBasename ([ string $suffix ] ) : string
public getCTime ( void ) : int
public getExtension ( void ) : string
public getFileInfo ([ string $class_name ] ) : SplFileInfo
public getFilename ( void ) : string
public getGroup ( void ) : int
public getInode ( void ) : int
public getLinkTarget ( void ) : string
public getMTime ( void ) : int
public getOwner ( void ) : int
public getPath ( void ) : string
public getPathInfo ([ string $class_name ] ) : SplFileInfo
public getPathname ( void ) : string
public getPerms ( void ) : int
public getRealPath ( void ) : string
public getSize ( void ) : int
public getType ( void ) : string
public isDir ( void ) : bool
public isExecutable ( void ) : bool
public isFile ( void ) : bool
public isLink ( void ) : bool
public isReadable ( void ) : bool
public isWritable ( void ) : bool
public openFile ([ string $open_mode = "r" [, bool $use_include_path = FALSE [, resource $context = NULL ]]] ) : SplFileObject
public setFileClass ([ string $class_name = "SplFileObject" ] ) : void
public setInfoClass ([ string $class_name = "SplFileInfo" ] ) : void
public __toString ( void ) : string
}

Table of Contents

User Contributed Notes

There are no user contributed notes for this page.