ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
MergeLibraryFSTools Class Reference

Custom FSTools for this script that overloads some behavior. More...

+ Inheritance diagram for MergeLibraryFSTools:
+ Collaboration diagram for MergeLibraryFSTools:

Public Member Functions

 copyable ($entry)
 Overloadable function that tests a filename for copyability. More...
 
 copy ($source, $dest)
 
- Public Member Functions inherited from FSTools
 mkdirr ($folder)
 Recursively creates a directory. More...
 
 copyr ($source, $dest)
 Copy a file, or recursively copy a folder and its contents; modified so that copied files, if PHP, have includes removed. More...
 
 copyable ($file)
 Overloadable function that tests a filename for copyability. More...
 
 rmdirr ($dirname)
 Delete a file, or a folder and its contents. More...
 
 globr ($dir, $pattern, $flags=NULL)
 Recursively globs a directory. More...
 
 __call ($name, $args)
 Allows for PHP functions to be called and be stubbed. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FSTools
static singleton ()
 Returns a global instance of FSTools. More...
 
static setSingleton ($singleton)
 Sets our global singleton to something else; useful for overloading functions. More...
 

Detailed Description

Custom FSTools for this script that overloads some behavior.

Warning
The overloading of copy() is not necessarily global for this script. Watch out!

Definition at line 25 of file generate-standalone.php.

Member Function Documentation

◆ copy()

MergeLibraryFSTools::copy (   $source,
  $dest 
)

Definition at line 35 of file generate-standalone.php.

36 {
38 }
$source
Definition: linkback.php:22
copy_and_remove_includes($file, $sfile)
Copies a file to another location recursively, if it is a PHP file remove includes.

References $source, and copy_and_remove_includes().

+ Here is the call graph for this function:

◆ copyable()

MergeLibraryFSTools::copyable (   $file)

Overloadable function that tests a filename for copyability.

By default, everything should be copied; you can restrict things to ignore hidden files, unreadable files, etc. This function applies to copyr().

Reimplemented from FSTools.

Definition at line 27 of file generate-standalone.php.

28 {
29 // Skip hidden files
30 if ($entry[0] == '.') {
31 return false;
32 }
33 return true;
34 }

The documentation for this class was generated from the following file: