Documentation

ops

FanPress CM filesystem operations model

Table of Contents

copyRecursive() Kopiert Verzeichnis-Inhalt rekursiv bool
removeBaseDir() Entfernt FanPress CM baseDir-String aus einer Pfadangabe string
deleteRecursive() Löscht Verzeichnis-Inhalt rekursiv bool
deleteRecursiveExec() Interne Funktion, welche Löschvorgang durchführt int
hashFile() Creates SHA256 file hash string
getUploadPath() Creates upload filepath string
getUploadUrl() Creates upload url string
realpathNoExists() "realpath" wrapper for non-existing files string
isValidDataFolder() Check if fullpath is valid path in /data folder structure bool

Methods

copyRecursive()

Kopiert Verzeichnis-Inhalt rekursiv

public static copyRecursive( $source : string , $destination : string [, $exclude : array = [] ] ) : bool
Parameters
$source : string
$destination : string
$exclude : array = []
Return values
bool

removeBaseDir()

Entfernt FanPress CM baseDir-String aus einer Pfadangabe

public static removeBaseDir( $path : string [, $keepFanPress : bool = false ] ) : string
Parameters
$path : string
$keepFanPress : bool = false
Tags
since
Return values
string

deleteRecursive()

Löscht Verzeichnis-Inhalt rekursiv

public static deleteRecursive( $path : string ) : bool
Parameters
$path : string
Return values
bool

deleteRecursiveExec()

Interne Funktion, welche Löschvorgang durchführt

private static deleteRecursiveExec( $path : string ) : int
Parameters
$path : string
Tags
since
Return values
int

hashFile()

Creates SHA256 file hash

public static hashFile( $path : string ) : string
Parameters
$path : string
Return values
string

getUploadPath()

Creates upload filepath

public static getUploadPath( [ $path : string = DIRECTORY_SEPARATOR ] [, $includeTime : bool = true ] ) : string
Parameters
$path : string = DIRECTORY_SEPARATOR
$includeTime : bool = true
Return values
string

getUploadUrl()

Creates upload url

public static getUploadUrl( [ $path : string = '/' ] [, $includeTime : bool = true ] ) : string
Parameters
$path : string = '/'
$includeTime : bool = true
Return values
string

realpathNoExists()

"realpath" wrapper for non-existing files

public static realpathNoExists( $path : string ) : string
Parameters
$path : string
Tags
since
Return values
string

isValidDataFolder()

Check if fullpath is valid path in /data folder structure

public static isValidDataFolder( [ $path : string = '' ] [, $type : string = '/' ] ) : bool
Parameters
$path : string = ''
$type : string = '/'
Tags
since
Return values
bool

Search results