Class OCSP_DIRECTORY

Description

openCSP class OCSP_DIRECTORY

Located in /common/OCSP_DIRECTORY.phpclass (line 41)


	
			
Class Constant Summary
 CLASS_SRC_FILE = __FILE__
Method Summary
 static boolean checkDir (string $aDir, [boolean $createDir = False], [octal $rMask = 0770], [boolean $debug = False])
 static string checkDirName (string $aDir, [char $pathSep = _OCSP_DIRSEP_], [int $isPath = -1], [boolean $debug = False])
 static array getDirList (string $dirName, [string $type = "F"], [boolean $debug = FALSE], [array $blackList = array()])
 static boolean isDir (string $aDir, [boolean $allowLink = True])
Methods
static checkDir (line 86)

checks if a dir exits and creats it if $createDir

  • access: public
boolean checkDir (string $aDir, [boolean $createDir = False], [octal $rMask = 0770], [boolean $debug = False])
  • string $aDir
  • boolean $createDir
  • octal $rMask
  • boolean $debug
static checkDirName (line 104)

checks if $aDir is a valid dirname fixes chars and /

if $isPath is not set $aDir is searched for $pathSep

  • access: public
string checkDirName (string $aDir, [char $pathSep = _OCSP_DIRSEP_], [int $isPath = -1], [boolean $debug = False])
  • string $aDir
  • char $pathSep
  • int $isPath
  • boolean $debug
static getDirList (line 168)

returns an array with files of a specified type in a directory

possible types:

  • F = FILE
  • D = DIRECTORY
. !D = WITHOUT DIRECTORIES (pk-04-08-18)
  • L = LINK
  • A = ALL
Combination of types are also allowed FL returns files and links

  • access: public
array getDirList (string $dirName, [string $type = "F"], [boolean $debug = FALSE], [array $blackList = array()])
  • string $dirName: (the directory)
  • string $type: (file type(s))
  • boolean $debug
  • array $blackList
static isDir (line 64)

returns if $aDir is a directory

  • access: public
boolean isDir (string $aDir, [boolean $allowLink = True])
  • string $aDir
  • boolean $allowLink
Class Constants
CLASS_SRC_FILE = __FILE__ (line 50)
  • abstract:

Documentation generated on Thu, 08 Jan 2009 17:45:36 +0100 by phpDocumentor 1.4.0a2