PHP Classes


Recommend this page to a friend!
  Classes of Colin McKinnon   pfpFileTree   README   Download  
Role: Documentation
Content type: text/plain
Description: description
Class: pfpFileTree
Manipulates files in directories recursively
Author: By
Last change:
Date: 12 years ago
Size: 1,012 bytes


Class file image Download
pfpFileTree is intended to be a Swiss Army knife for dealing with trees of files. The API was inspired by jQuery and allows you to select a subset of the files which exist within tree on the basis of various parameters such as name, size, modificaton time etc. In addition to adding functionality by overriding the class, you can apply callbacks to lists of files to perform operations on the files and/or capture attributes relating to the files. It is not strongly tied to the Unix permissions model - indeed, internally it only works out which files/dirs are readable/writeable. Of course adding support for various permissions systems is straightforward. And you can even use it as a tool for managing permissions. Please note that PHP does not support the sophisticated type of file lock management required for supporting multi-user concurrent access to data stored in files. This tool is not intended as a substitute for a transaction processing database. Documentation can be found in the manual.