\Article
Class to hold all data about individual articles based on the structure of the Articles table of the database
- Author: Michael Dombrowski
Synopsis
class Article
{
- // members
- private $articleURL;
- private $headline;
- private $subtitle;
- private $author;
- private $publisher;
- private $publishDate;
- private $articleText;
- private $articleHTML;
- private $articleSources;
- private $textSources;
- private $retrievalDate;
- private $articleSection;
- private $gradeLevel;
- private $isPrimarySource;
- private $hasUpdates;
- private $hasNotes;
- private integer $numSentences = 0;
- private integer $numOriginalReporting = 0;
- private integer $numPrimarySource = 0;
- private integer $numSecondarySource = 0;
- private integer $numQuote = 0;
- private integer $numNotSourced = 0;
- private integer $numNeedsSource = 0;
- // methods
- public void __construct()
- public float getGradeLevel()
- public void setGradeLevel()
- public mixed getArticleURL()
- public void setArticleURL()
- public mixed getHeadline()
- public void setHeadline()
- public mixed getSubtitle()
- public void setSubtitle()
- public mixed getAuthor()
- public void setAuthor()
- public mixed getPublisher()
- public void setPublisher()
- public mixed getPublishDate()
- public void setPublishDate()
- public mixed getArticleText()
- public void setArticleText()
- public mixed getArticleHTML()
- public void setArticleHTML()
- public mixed getArticleSources()
- public void setArticleSources()
- public mixed getRetrievalDate()
- public void setRetrievalDate()
- public mixed getArticleSection()
- public void setArticleSection()
- public mixed getIsPrimarySource()
- public void setIsPrimarySource()
- public mixed getHasUpdates()
- public void setHasUpdates()
- public mixed getHasNotes()
- public void setHasNotes()
- public mixed getTextSources()
- public void setTextSources()
- public mixed getNumSentences()
- public void setNumSentences()
- public mixed getNumOriginalReporting()
- public void setNumOriginalReporting()
- public mixed getNumPrimarySource()
- public void setNumPrimarySource()
- public mixed getNumSecondarySource()
- public void setNumSecondarySource()
- public mixed getNumQuote()
- public void setNumQuote()
- public mixed getNumNotSourced()
- public void setNumNotSourced()
- public mixed getNumNeedsSource()
- public void setNumNeedsSource()
Members
private
- $articleHTML
- $articleSection
- $articleSources
- $articleText
- $articleURL
- $gradeLevel
- $hasNotes
- $hasUpdates
- $headline
- $isPrimarySource
- $numNeedsSource
- $numNotSourced
- $numOriginalReporting
- $numPrimarySource
- $numQuote
- $numSecondarySource
- $numSentences
- $publishDate
- $publisher
- $retrievalDate
- $subtitle
- $textSources
Methods
public
- __construct()
- getArticleHTML()
- getArticleSection()
- getArticleSources()
- getArticleText()
- getArticleURL()
- getAuthor()
- getGradeLevel()
- getHasNotes()
- getHasUpdates()
- getHeadline()
- getIsPrimarySource()
- getNumNeedsSource()
- getNumNotSourced()
- getNumOriginalReporting()
- getNumPrimarySource()
- getNumQuote()
- getNumSecondarySource()
- getNumSentences()
- getPublishDate()
- getPublisher()
- getRetrievalDate()
- getSubtitle()
- getTextSources()
- setArticleHTML()
- setArticleSection()
- setArticleSources()
- setArticleText()
- setArticleURL()
- setAuthor()
- setGradeLevel()
- setHasNotes()
- setHasUpdates()
- setHeadline()
- setIsPrimarySource()
- setNumNeedsSource()
- setNumNotSourced()
- setNumOriginalReporting()
- setNumPrimarySource()
- setNumQuote()
- setNumSecondarySource()
- setNumSentences()
- setPublishDate()
- setPublisher()
- setRetrievalDate()
- setSubtitle()
- setTextSources()