PHP Trait DirectAdmin\LetsEncrypt\Lib\Utility\StorageTrait

Afficher le fichier Open project: Petertjuh360/da-letsencrypt

Méthodes publiques

Méthode Description
clearStorage ( $path = null ) : boolean Remove the storage
existsInStorage ( $fileName ) : string Check if a file or folder exists
getFromStorage ( $fileName ) : string Get from storage
writeToStorage ( $fileName, $content ) Write to the storage, always overwrites files

Method Details

clearStorage() public méthode

Remove the storage
public clearStorage ( $path = null ) : boolean
Résultat boolean

existsInStorage() public méthode

Check if a file or folder exists
public existsInStorage ( $fileName ) : string
$fileName
Résultat string

getFromStorage() public méthode

Get from storage
public getFromStorage ( $fileName ) : string
$fileName
Résultat string

writeToStorage() public méthode

Write to the storage, always overwrites files
public writeToStorage ( $fileName, $content )
$fileName
$content