$_db
$_db : \DB
Handle for the database connection.
Pastie storage implementation for Horde's Rdo ORM Layer.
Required values for $params:
'db' The Horde_Db adapterCopyright 2012-2017 Horde LLC (http://www.horde.org/) Based on the original Sql driver by Ben Klang
See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsd.
Summary
Methods Properties Constants __construct()
savePaste()
getPaste()
getPastes()
No public properties found No constants found _fromBackend()
$_db
$_mappers
N/A No private methods found No private properties found N/A
savePaste(string $bin, string $content, string $syntax = 'none', string $title = '') : string
Create a new paste in backend.
string | $bin | the paste bin to fill |
string | $content | the actual paste content |
string | $syntax | the highlighting syntax keyword |
string | $title | the title line of the paste |
uuid of the new paste
getPastes(string $bin, integer $limit = null, $start = null) : array
get any number of pastes from a bin, ordered by date, narrowed by limit and offset
string | $bin | A paste bin to query |
integer | $limit | a maximum of pastes to retrieve (optional, default to null = all) |
$start |
a list of pastes
_fromBackend(array|\Pastie_Entity_Paste $paste) : \an
Convert a backend hash or object to an application context hash.
This is ugly and may be redesigned or refactored
array|\Pastie_Entity_Paste | $paste | A paste hash or Rdo object. |
application context hash