Метод | Описание | |
---|---|---|
create ( string $pasteid, array $paste ) : boolean | Create a paste. | |
createComment ( string $pasteid, string $parentid, string $commentid, array $comment ) : boolean | Create a comment in a paste. | |
delete ( string $pasteid ) : void | Delete a paste and its discussion. | |
exists ( string $pasteid ) : boolean | Test if a paste exists. | |
existsComment ( string $pasteid, string $parentid, string $commentid ) : boolean | Test if a comment exists. | |
getInstance ( array $options = null ) : |
get instance of singleton | |
read ( string $pasteid ) : stdClas\stdClass | false | Read a paste. | |
readComments ( string $pasteid ) : array | Read all comments of paste. |
Метод | Описание | |
---|---|---|
_getExpiredPastes ( integer $batchsize ) : array | Returns up to batch size number of paste ids that have expired |
Метод | Описание | |
---|---|---|
_createCommentTable ( ) : void | create the paste table | |
_createConfigTable ( ) : void | create the paste table | |
_createPasteTable ( ) : void | create the paste table | |
_exec ( string $sql, array $params ) : boolean | execute a statement | |
_getConfig ( string $key ) : string | get a value by key from the config table | |
_getPrimaryKeyClauses ( string $key = 'dataid' ) : array | get the primary key clauses, depending on the database driver | |
_getTableQuery ( string $type ) : string | get table list query, depending on the database type | |
_sanitizeIdentifier ( string $identifier ) : string | sanitizes identifiers | |
_select ( string $sql, array $params, boolean $firstOnly = false ) : array | run a select statement | |
_upgradeDatabase ( string $oldversion ) : void | upgrade the database schema from an old version |
protected _getExpiredPastes ( integer $batchsize ) : array | ||
$batchsize | integer | |
Результат | array |
public static getInstance ( array $options = null ) : |
||
$options | array | |
Результат |
public readComments ( string $pasteid ) : array | ||
$pasteid | string | |
Результат | array |