Documentation

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

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
Paste

purge()

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

public purge() : mixed

        
On this page

Search results