Метод | Описание | |
---|---|---|
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 ) : 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 |
Метод | Описание | |
---|---|---|
_dataid2discussionpath ( string $dataid ) : string | Convert paste id to discussion storage path. | |
_dataid2path ( string $dataid ) : string | Convert paste id to storage path. | |
_init ( ) : void | initialize privatebin | |
_isFirstLevelDir ( string $element ) : boolean | Check that the given element is a valid first level directory. | |
_isSecondLevelDir ( string $element ) : boolean | Check that the given element is a valid second level directory. |
protected _getExpiredPastes ( integer $batchsize ) : array | ||
$batchsize | integer | |
Результат | array |
public static getInstance ( array $options = null ) : |
||
$options | array | |
Результат |
public readComments ( string $pasteid ) : array | ||
$pasteid | string | |
Результат | array |