PHP Class Requests, rartracker

Inspired by Requests for Python. Based on concepts from SimplePie_File, RequestCore and WP_Http.
显示文件 Open project: swetorrentking/rartracker Class Usage Examples

Public Methods

Method 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

Method Description
getVoteAmount ( $reqid, $addedUnix )
getVoteTimeReward ( $addedUnix )
myRequests ( )
myVotedRequests ( )

Method Details

__construct() public method

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

createOrUpdate() public method

public createOrUpdate ( $postData, $reqId = null )

delete() public method

public delete ( $reqId, $reason )

fill() public method

public fill ( $reqid )

get() public method

public get ( $id )

getMyRequests() public method

public getMyRequests ( )

getVotes() public method

public getVotes ( $id )

purge() public method

public purge ( $reqId )

query() public method

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

restore() public method

public restore ( $reqId, $reason )

updateCommentsAmount() public method

public updateCommentsAmount ( $requestId, $amount )

vote() public method

public vote ( $reqid, $reward )