PHP Class Requests, rartracker

Inspired by Requests for Python. Based on concepts from SimplePie_File, RequestCore and WP_Http.
Afficher le fichier Open project: swetorrentking/rartracker Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $db, $user = null, $log = null, $mailbox = null )
createOrUpdate ( $postData, $reqId = null )
delete ( $reqId, $reason )
fill ( $reqid )
get ( $id )
getMyRequests ( )
getVotes ( $id )
purge ( $reqId )
query ( $index, $limit = 10, $sort, $order, $searchParams )
restore ( $reqId, $reason )
updateCommentsAmount ( $requestId, $amount )
vote ( $reqid, $reward )

Private Methods

Méthode Description
getVoteAmount ( $reqid, $addedUnix )
getVoteTimeReward ( $addedUnix )
myRequests ( )
myVotedRequests ( )

Method Details

__construct() public méthode

public __construct ( $db, $user = null, $log = null, $mailbox = null )

createOrUpdate() public méthode

public createOrUpdate ( $postData, $reqId = null )

delete() public méthode

public delete ( $reqId, $reason )

fill() public méthode

public fill ( $reqid )

get() public méthode

public get ( $id )

getMyRequests() public méthode

public getMyRequests ( )

getVotes() public méthode

public getVotes ( $id )

purge() public méthode

public purge ( $reqId )

query() public méthode

public query ( $index, $limit = 10, $sort, $order, $searchParams )

restore() public méthode

public restore ( $reqId, $reason )

updateCommentsAmount() public méthode

public updateCommentsAmount ( $requestId, $amount )

vote() public méthode

public vote ( $reqid, $reward )