ops
in
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
boolremoveBaseDir()
Entfernt FanPress CM baseDir-String aus einer Pfadangabe
public
static removeBaseDir(
$path :
string
[, $keepFanPress :
bool
= false ]
)
: string
Parameters
- $path : string
- $keepFanPress : bool = false
Tags
Return values
stringdeleteRecursive()
Löscht Verzeichnis-Inhalt rekursiv
public
static deleteRecursive(
$path :
string
)
: bool
Parameters
- $path : string
Return values
booldeleteRecursiveExec()
Interne Funktion, welche Löschvorgang durchführt
private
static deleteRecursiveExec(
$path :
string
)
: int
Parameters
- $path : string
Tags
Return values
inthashFile()
Creates SHA256 file hash
public
static hashFile(
$path :
string
)
: string
Parameters
- $path : string
Return values
stringgetUploadPath()
Creates upload filepath
public
static getUploadPath(
[ $path :
string
= DIRECTORY_SEPARATOR ]
[, $includeTime :
bool
= true ]
)
: string
Parameters
- $path : string = DIRECTORY_SEPARATOR
- $includeTime : bool = true
Return values
stringgetUploadUrl()
Creates upload url
public
static getUploadUrl(
[ $path :
string
= '/' ]
[, $includeTime :
bool
= true ]
)
: string
Parameters
- $path : string = '/'
- $includeTime : bool = true
Return values
stringrealpathNoExists()
"realpath" wrapper for non-existing files
public
static realpathNoExists(
$path :
string
)
: string
Parameters
- $path : string
Tags
Return values
stringisValidDataFolder()
Check if fullpath is valid path in /data folder structure
public
static isValidDataFolder(
[ $path :
string
= '' ]
[, $type :
string
= '/' ]
)
: bool
Parameters
- $path : string = ''
- $type : string = '/'