brafton\NewsItem
class NewsItem models a news object and has a static method to parse a set of news items and return them as a collection of NewsItem objects
Synopsis
class NewsItem
extends Object
{
- // members
- private $xh;
- private $encoding;
- private $id;
- private $publishDate;
- private $createdDate;
- private $lastModifiedDate;
- private $headline;
- private $extract;
- private $text;
- private $href;
- private $byLine;
- private $tweetText;
- private $source;
- private $state;
- private $clientQuote;
- private $htmlTitle;
- private $htmlMetaDescription;
- private $htmlMetaKeywords;
- private $htmlMetaLanguage;
- private $tags;
- private $priority;
- private $format;
- private $photos;
- private $categories;
- private $comments;
- // methods
- public NewsItem __construct()
- private XMLHandler getFullNewsXML()
- public static array getNewsList()
- public String getEncoding()
- public int getId()
- public String getPublishDate()
- public String getHeadline()
- public String getCategories()
- public String getCreatedDate()
- public String getLastModifiedDate()
- public String getPhotos()
- public String getComments()
- public String getExtract()
- public String getText()
- public String getByLine()
- public String getTweetText()
- public String getSource()
- public String getState()
- public String getClientQuote()
- public String getHtmlTitle()
- public String getHtmlMetaDescription()
- public String getHtmlMetaKeywords()
- public String getHtmlMetaLanguage()
- public String getTags()
- public int getPriority()
- public String getFormat()
Hierarchy
Extends
- Object
Members
private
- $byLine
- $categories
- $clientQuote
- $comments
- $createdDate
- $encoding
- $extract
- $format
- $headline
- $href
- $htmlMetaDescription
- $htmlMetaKeywords
- $htmlMetaLanguage
- $htmlTitle
- $id
- $lastModifiedDate
- $photos
- $priority
- $publishDate
- $source
- $state
- $text
- $tweetText
- $xh
Methods
private
public
- __construct()
- getByLine()
- getCategories()
- getClientQuote()
- getComments()
- getCreatedDate()
- getEncoding()
- getExtract()
- getFormat()
- getHeadline()
- getHtmlMetaDescription()
- getHtmlMetaKeywords()
- getHtmlMetaLanguage()
- getHtmlTitle()
- getId()
- getLastModifiedDate()
- getNewsList()
- getPhotos()
- getPriority()
- getPublishDate()
- getSource()
- getState()
- getTags()
- getText()
- getTweetText()