BlogCommentRepresents a comment on a blog entry or article. InheritsEvents
Summary
getPostData
Pulls data out of the HTTP POST headers and into the object. The interface for this uses pre-defined POST field names they are as follows. If the poster is an authenticated user, then the userid is also recorded automatically from the HTTP session. username - The name of the poster. email - The poster’s e-mail address. url - The poster’s homepage. showemail - If not empty, show the poster’s e-mail address publically. subject - The subject of the post. data - The post content. This cannot be empty. |
Get the URI for various functions.
function uri( $type )
Get the path to use for to store the comment.
function getPath( $ts )
Commit changes to a comment.
function update ()
Delete a comment.
function delete ()
Add a new comment on an entry or article.
function insert( $entry )
Pulls data out of the HTTP POST headers and into the object.
function getPostData()
Get text to use as the name attribute in an HTML anchor tag.
function getAnchor()
The inverse of getAnchor, this converts an anchor into a file.
function getFilename( $anchor )
Get the permalink to the object.
function permalink()
Determines whether or not the object is an existing, saved comment.
function isComment( $path = false )
Gets a copy of the parent object of this comment, i.e.
function getParent()
Gets the markup to display the object in a web browser.
function get( $show_edit_controls = false )