Documentation

ops
in package

FanPress CM filesystem operations model

Tags
author

Stefan Seehafer aka imagine fanpress@nobody-knows.org

copyright

(c) 2011-2022, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

Table of Contents

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

Methods

copyRecursive()

Kopiert Verzeichnis-Inhalt rekursiv

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

deleteRecursive()

Löscht Verzeichnis-Inhalt rekursiv

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

getUploadPath()

Creates upload filepath

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

getUploadUrl()

Creates upload url

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

hashFile()

Creates SHA256 file hash

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

isValidDataFolder()

Check if fullpath is valid path in /data folder structure

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

realpathNoExists()

"realpath" wrapper for non-existing files

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

removeBaseDir()

Entfernt FanPress CM baseDir-String aus einer Pfadangabe

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

deleteRecursiveExec()

Interne Funktion, welche Löschvorgang durchführt

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

Search results