PHP Class PrivateBin\Persistence\AbstractPersistence

persists data in PHP files
显示文件 Open project: privatebin/privatebin Class Usage Examples

Public Methods

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

Protected Methods

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

checks if the file exists
protected static _exists ( string $filename ) : boolean
$filename string
return boolean

_initialize() protected static method

prepares path for storage
protected static _initialize ( ) : void
return void

_store() protected static method

store the data
protected static _store ( string $filename, string $data ) : string
$filename string
$data string
return string

getPath() public static method

get the path
public static getPath ( string $filename = null ) : string
$filename string
return string

setPath() public static method

set the path
public static setPath ( string $path ) : void
$path string
return void