Slashblog
[ class tree: Slashblog ] [ index: Slashblog ] [ all elements ]

Class: Post

Source Location: /classes/post.class.php

Class Overview

DataContainer
   |
   --Post

Contains a post, composed of several data fields/items. Has extended functionality specific to it's purpose as a container of not just data, but data composing a blogpost.


Methods


Inherited Variables

Inherited Methods

Class: DataContainer

DataContainer::__construct()
Initializes private item variable to an array.
DataContainer::AddItem()
Adds item to container.
DataContainer::DeleteItem()
Removes item with the specified key.
DataContainer::EditItem()
Edits the value associated with specified key.
DataContainer::GetValue()
Gets value associated with specified key.

Class Details

[line 15]
Contains a post, composed of several data fields/items. Has extended functionality specific to it's purpose as a container of not just data, but data composing a blogpost.



[ Top ]


Class Methods


constructor __construct [line 20]

Post __construct( )

Constructor, calls constructor of parent DataContainer.



Overrides DataContainer::__construct() (Initializes private item variable to an array.)

[ Top ]

method AsText [line 135]

void AsText( handle $handle)

Prints out post data text in our own format.



Tags:

access:  public


Parameters:

handle   $handle   File handle to use for writing.

[ Top ]

method AsXML [line 148]

void AsXML( )

Prints out post data as XML.



Tags:

access:  public


[ Top ]

method DumpToOutput [line 161]

void DumpToOutput( )

Prints out all items in container.



Tags:

access:  public


[ Top ]

method GetAuthor [line 75]

string GetAuthor( )

Gets post author.



Tags:

return:  Author of post.
access:  public


[ Top ]

method GetContent [line 95]

string GetContent( )

Gets post content.



Tags:

return:  Content of post.
access:  public


[ Top ]

method GetDate [line 115]

string GetDate( )

Gets post date.



Tags:

return:  Date of post.
access:  public


[ Top ]

method GetID [line 125]

integer GetID( )

Gets post ID.



Tags:

return:  ID of post.
access:  public


[ Top ]

method GetTags [line 105]

string GetTags( )

Gets post tags.



Tags:

return:  Tags of post.
access:  public


[ Top ]

method GetTitle [line 85]

string GetTitle( )

Gets post title.



Tags:

return:  Title of post.
access:  public


[ Top ]

method SetAuthor [line 28]

void SetAuthor( $value)

Sets an author of the post. If no author field yet exists, it creates one.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method SetContent [line 46]

void SetContent( $value)

Sets content of the post. If no content field yet exists, it creates one.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method SetDate [line 37]

void SetDate( )

Sets the timestamp of the post. If no timestamp field yet exists, it creates one.



Tags:

access:  public


[ Top ]

method SetTags [line 55]

void SetTags( $value)

Sets tags of the post. If no tag field yet exists, it creates one.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method SetTitle [line 64]

void SetTitle( $value)

Sets title of the post. If no title field yet exists, it creates one.



Tags:

access:  public


Parameters:

   $value  

[ Top ]


Documentation generated on Mon, 26 May 2008 19:59:42 +0100 by phpDocumentor 1.4.0