Die Directory-Klasse

(No version information available, might only be in Git)

Einführung

Instanzen von Directory werden mithilfe der dir() Funktion, und nicht mit dem new Operator erstellt.

Klassenbeschreibung

Directory {
/* Eigenschaften */
public string $path;
public resource $handle;
/* Methoden */
public close ( resource $dir_handle = ? ) : void
public read ( resource $dir_handle = ? ) : string
public rewind ( resource $dir_handle = ? ) : void
}

Eigenschaften

path

Das Verzeichnis, das geöffnet wurde.

handle

Kann zusammen mit anderen Funktionen wie zum Beispiel readdir(), rewinddir() und closedir() benutzt werden.

Inhaltsverzeichnis

add a note add a note

User Contributed Notes 1 note

up
-25
serxis at gmail dot com
9 years ago
If you have an error Directory::read() method not foundlike this one :
"PHP Fatal error:  Call to undefined method Directory::read() in ..."
try pth_read() instead of read() - undocumented "feature"
To Top