Figure 4.3. Group / Handler Relationship Diagram

Here we associate the groups that individual file handlers belong to. For example, if you have separate handlers for MP3 files and WAV files, they both would belong to the Music group.
Figure 4.4. File Handler / Media Group Associations
$_MAPPING[_HANDLER_DEFAULT] = _GROUP_DEFAULT;
$_MAPPING[_HANDLER_ARCHIVE] = _GROUP_DOWNLOADS;
$_MAPPING[_HANDLER_CODE] = _GROUP_TEXTFILES;
$_MAPPING[_HANDLER_TEXT] = _GROUP_TEXTFILES;
You may associate filenames with file handlers using filename pattern matching. For example, all files matching the pattern *.tar.gz with the Archive Handler and files matching *.c are handled by the Code Handler.
Figure 4.5. File Pattern / File Handler Associations
$_PATTERNS['*.txt'] = _HANDLER_TEXT;
$_PATTERNS['*.gz'] = _HANDLER_GZFILE;
$_PATTERNS['*.tgz'] = _HANDLER_ARCHIVE;