Class OnpubArticle

Description

An article.

Located in /OnpubArticle.php (line 14)


	
			
Variable Summary
array $authors
string $content
int $ID
int $imageID
array $sectionIDs
string $title
string $url
Method Summary
OnpubArticle __construct ()
DateTime getCreated ()
DateTime getModified ()
string getSummary ([int $limit = 30])
void setCreated ( $created)
void setModified ( $modified)
Variables
array $authors (line 53)

Article authors. Default is an empty array.

  • access: public
string $content (line 39)

Article content. Default is an empty string.

  • access: public
int $ID (line 21)

Article ID. Default is NULL.

  • access: public
OnpubImage $image (line 59)

Article image. Default is NULL.

  • access: public
int $imageID (line 27)

Image ID. Default is NULL.

  • access: public
array $sectionIDs (line 65)

Article section IDs. Default is an empty array.

  • access: public
string $title (line 33)

Article title. Default is an empty string.

  • access: public
string $url (line 45)

Article URL. Default is an empty string.

  • access: public
Methods
Constructor __construct (line 70)

Construct a new article.

OnpubArticle __construct ()
getCreated (line 93)

Get this article's creation date.

By default, returns the date at the time this method was called for the first time. Call OnpubArticle::setCreated() to explicitly set this article's creation date.

  • access: public
DateTime getCreated ()
getModified (line 121)

Get this article's last modification date.

By default, returns the date at the time this method was called for the first time. Call OnpubArticle::setModified() to explicitly set this article's last modification date.

  • access: public
DateTime getModified ()
getSummary (line 148)

Get a summary of this article's content.

By default a 30 word summary is generated.

  • access: public
string getSummary ([int $limit = 30])
  • int $limit: The maximum number of words to include in the summary.
setCreated (line 107)

Set this article's creation date.

  • access: public
void setCreated ( $created)
  • DateTime $created
setModified (line 135)

Set this article's last modification date.

  • access: public
void setModified ( $modified)
  • DateTime $modified

Documentation generated on Sat, 20 Sep 2008 19:13:06 -0400 by phpDocumentor 1.4.2