Source for file OCSP_DIRECTORY.phpclass
Documentation is available at OCSP_DIRECTORY.phpclass
  * openCSP class file OCSP_DIRECTORY  
  * @project Open CSP-Management  
  * @author Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: OCSP_DIRECTORY.phpclass,v 1.4 2008/11/06 08:41:58 pitlinz Exp $  
// ---------------------------------------------------------  
// ---------------------------------------------------------  
        require_once dirname(__FILE__
) . 
DIRECTORY_SEPARATOR . 
"pcf.phpinc";  
        require_once dirname(__FILE__
) . 
DIRECTORY_SEPARATOR . 
"pcf_directory.phpinc";  
  * openCSP class OCSP_DIRECTORY  
  * @project Open CSP-Management  
  * @author Peter Krebs <pitlinz@users.sourceforge.net>  
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License  
  * @version $Id: OCSP_DIRECTORY.phpclass,v 1.4 2008/11/06 08:41:58 pitlinz Exp $  
    /*** class constants  --------------------------------------------- */  
     * @constant string CLASS_SRC_FILE  
    const CLASS_SRC_FILE = __FILE__
;  
    /*** class variables  --------------------------------------------- */  
    /*** class methods ------------------------------------------------ */  
     * returns if $aDir is a directory  
     * @param boolean $allowLink   
    public static function isDir($aDir,$allowLink=
True)  
            return self::isDir($aDir,$allowLink);  
     * checks if a dir exits and creats it if $createDir  
     * @param boolean $createDir   
    public static function checkDir($aDir,$createDir=
False,$rMask=
0770,$debug=
False)  
     * checks if $aDir is a valid dirname fixes chars and /  
     * if $isPath is not set $aDir is searched for $pathSep  
    public static function checkDirName($aDir,$pathSep=
_OCSP_DIRSEP_,$isPath=-
1,$debug=
False)      
        if ($debug) echoDebugMethod(__FILE__
,"static","OCSP_DIRECTORY::checkDirName");  
            $bol_isPath = 
(strstr($str_dir,$pathSep) ? 
True :  
False);  
            $bol_isPath = 
(intval($isPath) ? 
True : 
False);  
            $str_ret = 
((substr($str_dir,0,1)==
$pathSep) ? 
$pathSep : 
"");  
            if ($arr_path = 
explode($pathSep,$str_dir))  
                foreach($arr_path as $str_dirName)  
                    if (!empty($str_dirName))  
                        $str_ret .= 
self::checkDirName($str_dirName,$pathSep,0,$debug) . 
$pathSep;   
      * returns an array with files of a specified type in a directory  
      * . !D  = WITHOUT DIRECTORIES (pk-04-08-18)  
      * Combination of types are also allowed  
      * FL returns files and links  
      * @param string $dirName (the directory)  
      * @param string $type (file type(s))  
      * @param array $blackList   
    public static function getDirList($dirName,$type=
"F",$debug=
FALSE,$blackList=
array())  
    /*** compostion --------------------------------------------------- */  
    /*** attributes  -------------------------------------------------- */  
    /*** factory / construct  ----------------------------------------- */  
    /*** getter / setter ---------------------------------------------- */  
 
 
	
		Documentation generated on Thu, 08 Jan 2009 17:45:36 +0100 by phpDocumentor 1.4.0a2