[ Index ]

PHP Cross Reference of Nucleus CMS v3.51 code documentation

title

Body

[close]

/nucleus/libs/ -> COMMENTS.php (summary)

A class representing the comments (all of them) for a certain post on a ceratin blog

Copyright: Copyright (C) 2002-2009 The Nucleus Group
License: http://nucleuscms.org/license.txt GNU General Public License
Version: $Id: COMMENTS.php 1388 2009-07-18 06:31:28Z shizuki $
File Size: 343 lines (11 kb)
Included or required: 1 time
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

COMMENTS:: (6 methods):
  COMMENTS()
  setItemActions()
  showComments()
  amountComments()
  addComment()
  isValidComment()


Class: COMMENTS  - X-Ref

COMMENTS($itemid)   X-Ref
Creates a new COMMENTS object for the given blog and item

param: $itemid

setItemActions(&$itemActions)   X-Ref
Used when parsing comments

param: $itemActions

showComments($template, $maxToShow = -1, $showNone = 1, $highlight = '')   X-Ref
Shows maximum $max comments to the given item using the given template
returns the amount of shown comments (if maxToShow = -1, then there is no limit)

param: template
param: maxToShow
param: showNone
param: highlight

amountComments()   X-Ref
Returns the amount of comments for this itemid


addComment($timestamp, $comment)   X-Ref
Adds a new comment to the database


isValidComment(&$comment, &$spamcheck)   X-Ref
Checks if a comment is valid and call plugins
that can check if the comment is a spam comment




Generated: Sun Aug 1 03:56:06 2010
Open Source related documentation for developers.