Class FSTools

Description

Filesystem tools not provided by default; can recursively create, copy and delete folders.

Filesystem tools not provided by default; can recursively create, copy and delete folders. Some template methods are provided for extensibility.

Located in /extras/FSTools.php (line 10)


	
			
Method Summary
static void setSingleton ( $singleton)
static void singleton ()
void copyable ( $file)
void copyr ( $source,  $dest)
void globr ( $dir,  $pattern, [ $flags = NULL])
void mkdirr (string $folder)
void rmdirr ( $dirname)
void __call ( $name,  $args)
Methods
static method setSingleton (line 27)

Sets our global singleton to something else; useful for overloading functions.

Sets our global singleton to something else; useful for overloading functions.

  • access: public
static void setSingleton ( $singleton)
  • $singleton
static method singleton (line 18)

Returns a global instance of FSTools

Returns a global instance of FSTools

  • access: public
static void singleton ()
copyable (line 95)

Overloadable function that tests a filename for copyability. default, everything should be copied; you can restrict things to ignore hidden files, unreadable files, etc. applies to copyr().

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().

  • access: public
void copyable ( $file)
  • $file
copyr (line 60)

Copy a file, or recursively copy a folder and its contents; modified

Copy a file, or recursively copy a folder and its contents; modified so that copied files, if PHP, have includes removed

  • access: public
void copyr ( $source,  $dest)
  • $source
  • $dest
globr (line 134)

Recursively globs a directory.

Recursively globs a directory.

  • access: public
void globr ( $dir,  $pattern, [ $flags = NULL])
  • $dir
  • $pattern
  • $flags
mkdirr (line 36)

Recursively creates a directory

Recursively creates a directory

  • access: public
void mkdirr (string $folder)
  • string $folder: Name of folder to create
rmdirr (line 103)

Delete a file, or a folder and its contents

Delete a file, or a folder and its contents

  • access: public
void rmdirr ( $dirname)
  • $dirname
__call (line 151)

Allows for PHP functions to be called and be stubbed.

Allows for PHP functions to be called and be stubbed.

  • access: public
void __call ( $name,  $args)
  • $name
  • $args

Documentation generated on Thu, 19 Jun 2008 18:49:16 -0400 by phpDocumentor 1.4.2