Stack2RSS 1.0
A simple web application that creates an RSS feed given an API route.
|
Provides conversion for item objects. More...
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. | |
Private Member Functions | |
IsSite ($json_item) | |
Determines if this item is a site or associated user. |
Provides conversion for item objects.
Note: unfortunately, the API uses 'item' for two different objects returned: /sites
and /users/{ID}/associated
.
Because of this, this class is slightly more complicated than it needs to be.
Definition at line 14 of file item_converter.php.
ItemConverter::GetDate | ( | $ | json_item | ) | [protected] |
Returns the date of the given item.
[in] | $json_item | the JSON for the particular item |
Reimplemented from Converter.
Definition at line 50 of file item_converter.php.
ItemConverter::GetDescription | ( | $ | json_item | ) | [protected] |
Returns the description of the given item.
[in] | $json_item | the JSON for the particular item |
Reimplemented from Converter.
Definition at line 34 of file item_converter.php.
ItemConverter::GetLink | ( | $ | json_item | ) | [protected] |
Returns the link for the given item.
[in] | $json_item | the JSON for the particular item |
Reimplemented from Converter.
Definition at line 42 of file item_converter.php.
ItemConverter::GetTitle | ( | $ | json_item | ) | [protected] |
Returns the title of the given item.
[in] | $json_item | the JSON for the particular item |
Reimplemented from Converter.
Definition at line 26 of file item_converter.php.
ItemConverter::IsSite | ( | $ | json_item | ) | [private] |
Determines if this item is a site or associated user.
[in] | $json_item | the JSON data for the item |
Definition at line 21 of file item_converter.php.