PHP Trait DirectAdmin\LetsEncrypt\Lib\Utility\StorageTrait

Datei anzeigen Open project: Petertjuh360/da-letsencrypt

Public Methods

Method 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 method

Remove the storage
public clearStorage ( $path = null ) : boolean
return boolean

existsInStorage() public method

Check if a file or folder exists
public existsInStorage ( $fileName ) : string
$fileName
return string

getFromStorage() public method

Get from storage
public getFromStorage ( $fileName ) : string
$fileName
return string

writeToStorage() public method

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