[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tests_runner/lib/spikephpcoverage/src/util/ -> Utility.php (summary)

(no description)

File Size: 226 lines (7 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 1 file
 tests_runner/lib/spikephpcoverage/src/util/Logger.php

Defines 1 class

Utility:: (10 methods):
  getTimeStamp()
  shortenFilename()
  writeError()
  unixifyPath()
  replaceBackslashes()
  capitalizeDriveLetter()
  makeDirRecursive()
  getOS()
  getTmpDir()
  getLogger()


Class: Utility  - X-Ref

Utility functions

getTimeStamp()   X-Ref
Return the current timestamp in human readable format.
Thursday March 17, 2005 19:10:47

return: Readable timestamp

shortenFilename($filename, $maxlength=80)   X-Ref
Shorten the filename to some maximum characters

param: $filename Complete file path
param: $maxlength=150 Maximum allowable length of the shortened
return: Shortened file path

writeError($str)   X-Ref
Write error log if debug is on

param: $str Error string

unixifyPath($path)   X-Ref
Convert Windows paths to Unix paths

param: $path File path
return: String Unixified file path

replaceBackslashes($path)   X-Ref
Convert the back slash path separators with forward slashes.

param: $path Windows path with backslash path separators
return: String Path with back slashes replaced with forward slashes.

capitalizeDriveLetter($path)   X-Ref
Convert the drive letter to upper case

param: $path Windows path with "c:<blah>"
return: String Path with driver letter capitalized.

makeDirRecursive($dir, $mode=0755)   X-Ref
Make directory recursively.
(Taken from: http://aidan.dotgeek.org/lib/?file=function.mkdirr.php)

param: $dir Directory path to create
param: $mode=0755
return: True on success, False on failure

getOS()   X-Ref
Returns the current OS code
WIN - Windows, LIN -Linux, etc.

return: String 3 letter code for current OS

getTmpDir()   X-Ref
No description

getLogger($package=false)   X-Ref
No description



Generated: Tue Dec 2 03:54:09 2008 Cross-referenced by PHPXref 0.7