PHP Класс Pastie_Driver_Rdo, horde
Required values for $params:
'db' The Horde_Db adapter
Copyright 2012-2016 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.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$_db |
DB |
Handle for the database connection. |
|
$_mappers |
Horde_Rdo_Factory |
The mapper factory |
|
Открытые методы
Защищенные методы
Метод |
Описание |
|
_fromBackend ( array | Pastie_Entity_Paste $paste ) : an |
Convert a backend hash or object to an application context hash. |
|
Описание методов
__construct()
публичный Метод
This is the basic constructor for the Rdo driver.
_fromBackend()
защищенный Метод
This is ugly and may be redesigned or refactored
protected _fromBackend ( array | Pastie_Entity_Paste $paste ) : an |
$paste |
array | Pastie_Entity_Paste |
A paste hash or Rdo object. |
Результат |
an |
application context hash |
getPaste()
публичный Метод
Retrieves the paste from the database.
getPastes()
публичный Метод
get any number of pastes from a bin, ordered by date, narrowed by limit and offset
public getPastes ( string $bin, integer $limit = null, $start = null ) : array |
$bin |
string |
A paste bin to query |
$limit |
integer |
a maximum of pastes to retrieve (optional, default to null = all) |
Результат |
array |
a list of pastes |
savePaste()
публичный Метод
Create a new paste in backend.
Описание свойств
Handle for the database connection.
protected DB $_db |
Результат |
DB |
|
$_mappers защищенное свойство
protected Horde_Rdo_Factory $_mappers |
Результат |
Horde_Rdo_Factory |
|