GtkFileSelection::complete

GtkFileSelection::complete

complete() will try to match the pattern given by the programmer to a valid file name in the current directory, or to a valid directory name on the current drive. This is useful when, for example, wishing to hard-code a search for a specific extension into an application. Where a full match is made, the matched file name will appear in both the file list and the text entry field of the file selection dialog. If only partial matches can be found, the file list will contain the resulting file names and the text entry field will contain the closest matched string (not the full file name).

Note that only a single wildcard field is effective here.

$fs->complete("*.php");

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.