Stack.PHP
A simple and easy to use PHP library for the Stack Exchange API.
Public Member Functions
PostRequest Class Reference

A request for posts. More...

Inheritance diagram for PostRequest:
PagedRequest QuestionRequest

List of all members.

Public Member Functions

 __construct ($url, $return_object=null, $category=null, $method=null)
 Constructor for a post request.
 Comments ()
 Retrieves the comments associated with the posts.
 Revisions ()
 Retrieves the revisions for the specified posts.
 SuggestedEdits ()
 Retrieves the suggested edits pending for the specified posts.

Detailed Description

A request for posts.


Constructor & Destructor Documentation

PostRequest::__construct ( url,
return_object = null,
category = null,
method = null 
)

Constructor for a post request.

Parameters:
$urlthe domain name of the site or a URL object
$return_objectthe type of data expected to be returned
$categorythe category of requests being made
$methodthe method being called

Reimplemented from PagedRequest.


Member Function Documentation

PostRequest::Comments ( )

Retrieves the comments associated with the posts.

Returns:
a PagedRequest object
PostRequest::Revisions ( )

Retrieves the revisions for the specified posts.

Returns:
a PagedRequest object
PostRequest::SuggestedEdits ( )

Retrieves the suggested edits pending for the specified posts.

Returns:
a SuggestedEditsRequest object

The documentation for this class was generated from the following file:
 All Classes Functions Variables