Model
in package
Model
Factory of PrivateBin instance models.
Table of Contents
Properties
- $_conf : Configuration
- Configuration.
- $_store : AbstractData
- Data storage.
Methods
- __construct() : mixed
- Factory constructor.
- getPaste() : Paste
- Get a paste, optionally a specific instance.
- getStore() : AbstractData
- Gets, and creates if neccessary, a store object
- purge() : mixed
- Checks if a purge is necessary and triggers it if yes.
Properties
$_conf
Configuration.
private
Configuration
$_conf
$_store
Data storage.
private
AbstractData
$_store
= null
Methods
__construct()
Factory constructor.
public
__construct(configuration $conf) : mixed
Parameters
- $conf : configuration
getPaste()
Get a paste, optionally a specific instance.
public
getPaste([string $pasteId = null ]) : Paste
Parameters
- $pasteId : string = null
Return values
PastegetStore()
Gets, and creates if neccessary, a store object
public
getStore() : AbstractData
Return values
AbstractDatapurge()
Checks if a purge is necessary and triggers it if yes.
public
purge() : mixed