PHP Class PrivateBin\Persistence\AbstractPersistence

persists data in PHP files
Afficher le fichier Open project: privatebin/privatebin Class Usage Examples

Méthodes publiques

Méthode Description
getPath ( string $filename = null ) : string get the path
setPath ( string $path ) : void set the path

Méthodes protégées

Méthode Description
_exists ( string $filename ) : boolean checks if the file exists
_initialize ( ) : void prepares path for storage
_store ( string $filename, string $data ) : string store the data

Method Details

_exists() protected static méthode

checks if the file exists
protected static _exists ( string $filename ) : boolean
$filename string
Résultat boolean

_initialize() protected static méthode

prepares path for storage
protected static _initialize ( ) : void
Résultat void

_store() protected static méthode

store the data
protected static _store ( string $filename, string $data ) : string
$filename string
$data string
Résultat string

getPath() public static méthode

get the path
public static getPath ( string $filename = null ) : string
$filename string
Résultat string

setPath() public static méthode

set the path
public static setPath ( string $path ) : void
$path string
Résultat void