\PrivateBinModel

Model

Factory of PrivateBin instance models.

Summary

Methods
Properties
Constants
__construct()
getPaste()
purge()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_getStore()
$_conf
$_store
N/A

Properties

$_store

$_store : \PrivateBin\AbstractData

Data storage.

Type

\PrivateBin\AbstractData

Methods

__construct()

__construct(\PrivateBin\configuration  $conf) 

Factory constructor.

Parameters

\PrivateBin\configuration $conf

getPaste()

getPaste(string  $pasteId = null) : \PrivateBin\Model\Paste

Get a paste, optionally a specific instance.

Parameters

string $pasteId

Returns

\PrivateBin\Model\Paste

purge()

purge() 

Checks if a purge is necessary and triggers it if yes.

_getStore()

_getStore() : \PrivateBin\AbstractData

Gets, and creates if neccessary, a store object

Returns

\PrivateBin\AbstractData