Stack2RSS 1.0
A simple web application that creates an RSS feed given an API route.
Public Member Functions | Protected Member Functions

Converter Class Reference

Converts JSON data to proper HTML response. More...

Inheritance diagram for Converter:
AnswerConverter APISiteConverter AssociatedUserConverter BadgeConverter CommentConverter ItemConverter PostTimelineConverter PrivilegeConverter QuestionConverter RepChangeConverter RevisionConverter StatisticsConverter TagConverter TagSynonymConverter TagWikiConverter TopTagConverter TopUserConverter UserConverter UserTimelineConverter

List of all members.

Public Member Functions

 PerformConversion ($json_array)
 Performs the actual conversion.

Protected Member Functions

 GetDate ($json_item)
 Returns the date of the given item.
 GetDescription ($json_item)
 Returns the description of the given item.
 GetLink ($json_item)
 Returns the link for the given item.
 GetTitle ($json_item)
 Returns the title of the given item.

Detailed Description

Converts JSON data to proper HTML response.

Converter is an abstract base class that represents a conversion for a particular type of item returned by the API.

Definition at line 9 of file converter.php.


Member Function Documentation

Converter::GetDate ( json_item) [abstract, protected]
Converter::GetDescription ( json_item) [abstract, protected]
Converter::GetLink ( json_item) [abstract, protected]
Converter::GetTitle ( json_item) [abstract, protected]
Converter::PerformConversion ( json_array)

Performs the actual conversion.

The data returned by this function is an array of objects that contain the following members:

  • title
  • description
  • link
  • date
    Parameters:
    [in]$json_arraythe JSON array contained in the API response
    Returns:
    an array that contains the HTML for the items

Definition at line 21 of file converter.php.


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