Class phpMyDIR

Description
Variable Summary
Method Summary
 bool fileMatch (string $file)
 bool getResult ()
 string humanReadableSize (integer $size)
 string humanReadableTime ([integer $timestamp = -1])
 void _files (string $dir, string $file, integer $pos)
 void _folder (string $dir, string $file, integer $pos)
 void _search (string $dir, integer $pos)
Variables
mixed $baseRoot = './' (line 29)
  • access: public
mixed $fileConvertSize = 1 (line 93)
  • access: public
mixed $fileConvertTime = 1 (line 88)
  • access: public
mixed $fileMask = '*' (line 73)
  • access: public
mixed $fileShowSize = 1 (line 83)
  • access: public
mixed $fileShowTime = 1 (line 78)
  • access: public
mixed $folderConvertTime = 1 (line 114)
  • access: public
mixed $folderMask = '*' (line 99)
  • access: public
mixed $folderOnly = 0 (line 104)
  • access: public
mixed $folderShowTime = 1 (line 109)
  • access: public
mixed $globalDateDays = array('So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa') (line 40)
  • access: public
mixed $globalDateFormat = '%d. %B %Y | %H:%M' (line 35)
  • access: public
mixed $globalDateMonths = array('Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sept', 'Okt', 'Nov', 'Dez') (line 45)
  • access: public
mixed $globalSepDecimals = ',' (line 67)
  • access: public
mixed $globalSepThousands = '.' (line 62)
  • access: public
mixed $globalSizeRound = 2 (line 51)
  • access: public
mixed $globalSizeUnits = array('bytes', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Eb') (line 56)
  • access: public
mixed $resultFiles = array() (line 136)
  • access: public
mixed $resultFolder = array() (line 141)
  • access: public
mixed $resultMixed = array() (line 131)
  • access: public
mixed $spiderLevel = 1 (line 125)
  • access: public
mixed $spiderRecursive = 0 (line 120)
  • access: public
mixed $_maskArray = false (line 147)
  • access: private
Methods
fileMatch (line 186)

fileMatch()

compare the given file with the file-mask

  • access: public
bool fileMatch (string $file)
  • string $file
getResult (line 159)

getResult()

start the search and return true or false based on search success

  • access: public
bool getResult ()
humanReadableSize (line 340)

humanReadable($size=0)

convert bytes to kb, mb, gb

  • access: public
string humanReadableSize (integer $size)
  • integer $size: the size
humanReadableTime (line 362)
  • return: the formatted date
  • access: public
string humanReadableTime ([integer $timestamp = -1])
  • integer $timestamp: the current timestamp
_files (line 289)

_files($dir,$file,$pos)

prepare a file

  • access: private
void _files (string $dir, string $file, integer $pos)
  • string $dir
  • string $file
  • integer $pos
_folder (line 252)

_folder($dir,$file,$pos)

prepare a folder

  • access: private
void _folder (string $dir, string $file, integer $pos)
  • string $dir
  • string $file
  • integer $pos
_search (line 218)

getResult()

read the contenst of the given root

  • access: private
void _search (string $dir, integer $pos)
  • string $dir
  • integer $pos

Documentation generated on Thu, 9 Jun 2005 06:51:39 +0200 by phpDocumentor 1.2.3