Writing /home/tachyon/public_html/scripts/data/cache/f/fa5566d96fcd4e26251c5e17a92d5288.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/tachyon/public_html/scripts/data/cache/f/fa5566d96fcd4e26251c5e17a92d5288.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/tachyon/public_html/scripts/data/cache/f/fa5566d96fcd4e26251c5e17a92d5288.xhtml failed

vsns_article

Versions: VSNS 4

Description

Contains information for a single article and methods required to display and manipulate it. Each time an article's data needs to be loaded, a new instance is created using either the article's ID or its data previously fetched from the database.

Properties

  • const ERR_ARTICLE_DNE
  • const ERR_INSERT
  • const ERR_UPDATE
  • public $all_comments
  • public $article_password
  • public $author
  • public $category
  • public $comments
  • public $comment_action
  • public $container_classes
  • public $content
  • public $day
  • public $edit_time
  • public $expires
  • public $heading
  • public $ID
  • public $month
  • public $need_password
  • public $num_comments
  • public $old_tags
  • public $password
  • public $pinned
  • public $prefix
  • public $pubDate
  • public $queue
  • public $show_edit
  • public $tags
  • public $tag_url
  • public $type
  • public $url
  • public $year

Methods

This class contains several private methods which may only–and should only–be called from within another method of the class.

  • __construct - Loads article data into properties when a new instance is created
  • display - Outputs the formatted article data
  • edit - Processes a new or edited article
  • edit_form - Displays form for creating a new article or editing an article
  • grab_tags - Fetches tags for the article
  • grab_uri - Determines link to article
  • insert - Inserts a new article into the database (private)
  • preview - Generates a preview of the article prior to saving changes
  • show_comments - Shows all comments for an article
  • split_properties - Splits article properties into _news and _common data (private)
  • sync - Overwites existing properties with edited data (private)
  • update - Commits an article's edited data to the database (private)
 
vsns_lemon/article.txt · Last modified: 2008/06/09 16:39 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki