PHP Class PrivateBin\PrivateBin

Controller, puts it all together.
Mostra file Open project: privatebin/privatebin

Public Methods

Method Description
__construct ( ) : void constructor

Private Methods

Method Description
_create ( ) : string Store new paste or comment
_delete ( string $dataid, string $deletetoken ) : void Delete an existing paste
_init ( ) : void initialize privatebin
_jsonld ( string $type ) : void outputs requested JSON-LD context
_read ( string $dataid ) : void Read an existing paste or comment
_return_message ( integer $status, string $message, array $other = [] ) : void prepares JSON encoded status message
_view ( ) : void Display PrivateBin frontend.

Method Details

__construct() public method

initializes and runs PrivateBin
public __construct ( ) : void
return void