PHP Class PrivateBin\Model

Factory of PrivateBin instance models.
Show file Open project: privatebin/privatebin

Public Methods

Method Description
__construct ( Configuration $conf ) : void Factory constructor.
getPaste ( string $pasteId = null ) : Paste Get a paste, optionally a specific instance.
purge ( ) : void Checks if a purge is necessary and triggers it if yes.

Private Methods

Method Description
_getStore ( ) : AbstractData Gets, and creates if neccessary, a store object

Method Details

__construct() public method

Factory constructor.
public __construct ( Configuration $conf ) : void
$conf Configuration
return void

getPaste() public method

Get a paste, optionally a specific instance.
public getPaste ( string $pasteId = null ) : Paste
$pasteId string
return PrivateBin\Model\Paste

purge() public method

Checks if a purge is necessary and triggers it if yes.
public purge ( ) : void
return void