Свойство | Тип | Описание | |
---|---|---|---|
$_instance | singleton instance |
Метод | Описание | |
---|---|---|
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 ) : privatebin_abstract | get instance of singleton | |
purge ( integer $batchsize ) : void | Perform a purge of old pastes, at most the given batchsize is deleted. | |
read ( string $pasteid ) : stdClas\stdClass | false | Read a paste. | |
readComments ( string $pasteid ) : array | Read all comments of paste. |
Метод | Описание | |
---|---|---|
__construct ( ) | enforce singleton, disable constructor | |
_getExpiredPastes ( integer $batchsize ) : array | Returns up to batch size number of paste ids that have expired | |
getOpenSlot ( array &$comments, integer | string $postdate ) : integer | string | Get next free slot for comment from postdate. |
Метод | Описание | |
---|---|---|
__clone ( ) | enforce singleton, disable cloning |
protected __construct ( ) |
abstract protected _getExpiredPastes ( integer $batchsize ) : array | ||
$batchsize | integer | |
Результат | array |
public static getInstance ( array $options ) : privatebin_abstract | ||
$options | array | |
Результат | privatebin_abstract |
abstract public readComments ( string $pasteid ) : array | ||
$pasteid | string | |
Результат | array |