\PrivateBinModel

Model

Factory of PrivateBin instance models.

Summary

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

Properties

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.