Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

FileOps Class Reference

List of all members.

Public Member Functions

 ls_a ($wh)
 cp ($wf, $wto)
 rm ($dir)

Detailed Description

Provides a few functions to manage more easily the file operations, i.e. it allows to copy, delete and move directories recursively.

Definition at line 13 of file FileOps.class.php.


Member Function Documentation

FileOps::cp wf,
wto
 

Copies $wf in $wto. The way it works is like the cp command in UNIX It has been made by [torrmal at yahoo dot com] and taken from the PHP manual. I have modified the original code a little to get it works like the cp command in UNIX. [resman]

Parameters:
wf The source file.
wto The destination file.

Definition at line 44 of file FileOps.class.php.

References ls_a().

Referenced by ModuleInstall::FilesInstall().

FileOps::ls_a wh  ) 
 

This function lists a directory. And is needed for the cp function. It has been made by [torrmal at yahoo dot com] and taken from the PHP manual

Parameters:
wh The directory to be listed.

Definition at line 21 of file FileOps.class.php.

Referenced by cp().

FileOps::rm dir  ) 
 

Deletes $dir recursively. It has been made by [flexer at cutephp dot com] and taken from the PHP manual. I have modified the original code a little to get it works like the rm command in UNIX. [resman]

Parameters:
dir The directory to be removed

Definition at line 86 of file FileOps.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:36 2003 for James by doxygen 1.3.4