PHP-GTK
Tuesday, September 16, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkFileFilter::add_pixbuf_formats
GtkFileFilter::get_namenext

Last updated: Sun, 12 May 2013
view this page in English

GtkFileFilter::filter

Call this method to test if a file passes the filter or not. When the fileinfo data match the filter rules, true is returned - otherwise the method returns false.

The fileinfo parameter consists of four elements; the first is the file name including path; the second the file URI. Third element is the "display name", the file name without path as displayed in file choosers. Fourth and last array element is the mime type of the file. Not every element is needed; use get_needed() to check which values have to be set. If a value is not needed, you should put null in it.

Example 66. Sample array

$info = array(
    '/data/cvs/phpgtk2/test/window_set_icon_list.phpw',
    'file:///data/cvs/phpgtk2/test/window_set_icon_list.phpw',
    'window_set_icon_list.phpw',
    'application/x-php'
);

User Contributed Notes
gtk.gtkfilefilter.method.filter.php
add a note about notes
There are no user contributed notes for this page.


previousGtkFileFilter::add_pixbuf_formats
GtkFileFilter::get_namenext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:57 2013 CEST