Php/docs/class.directoryiterator

提供:Dev Guides
< Php
移動先:案内検索

(PHP 5, PHP 7)

はじめに

DirectoryIterator クラスは、 ファイルシステムのディレクトリを閲覧するためのシンプルなインターフェイスです。


クラス概要


DirectoryIterator extends SplFileInfo implements SeekableIterator {

/* メソッド */

public __construct ( string $path )

public current ( ) : DirectoryIterator

public getATime ( ) : int

public getBasename ([ string $suffix ] ) : string

public getCTime ( ) : int

public getExtension ( ) : string

public getFilename ( ) : string

public getGroup ( ) : int

public getInode ( ) : int

public getMTime ( ) : int

public getOwner ( ) : int

public getPath ( ) : string

public getPathname ( ) : string

public getPerms ( ) : int

public getSize ( ) : int

public getType ( ) : string

public isDir ( ) : bool

public isDot ( ) : bool

public isExecutable ( ) : bool

public isFile ( ) : bool

public isLink ( ) : bool

public isReadable ( ) : bool

public isWritable ( ) : bool

public key ( ) : string

public next ( ) : void

public rewind ( ) : void

public seek ( int $position ) : void

public __toString ( ) : string

public valid ( ) : bool

}

変更履歴

バージョン 説明
5.1.2 DirectoryIteratorSplFileInfo を継承するようになりました。


目次