COMMENTS Class Reference

List of all members.

Public Member Functions

 COMMENTS ($itemid)
 setItemActions (&$itemActions)
 showComments ($template, $maxToShow=-1, $showNone=1, $highlight= '')
 amountComments ()
 addComment ($timestamp, $comment)
 isValidComment ($comment, &$spamcheck)

Public Attributes

 $itemid
 $itemActions
 $commentcount


Detailed Description

Definition at line 25 of file COMMENTS.php.


Member Function Documentation

COMMENTS::COMMENTS ( itemid  ) 

Creates a new COMMENTS object for the given blog and item

Parameters:
$itemid id of the item

Definition at line 42 of file COMMENTS.php.

References $itemid.

COMMENTS::setItemActions ( &$  itemActions  ) 

Used when parsing comments

Parameters:
$itemActions itemActions object, that will take care of the parsing

Definition at line 51 of file COMMENTS.php.

References $itemActions.

COMMENTS::showComments ( template,
maxToShow = -1,
showNone = 1,
highlight = '' 
)

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)

Parameters:
template template to use
maxToShow max. comments to show
showNone indicates if the 'no comments' thingie should be outputted when there are no comments (useful for closed items)
highlight Highlight to use (if any)

Definition at line 69 of file COMMENTS.php.

References $actions, $CONF, $highlight, $manager, $query, amountComments(), mysql_fetch_assoc(), mysql_free_result(), mysql_num_rows(), and sql_query().

COMMENTS::amountComments (  ) 

Returns the amount of comments for this itemid

Definition at line 124 of file COMMENTS.php.

References $query, mysql_fetch_row(), and sql_query().

Referenced by showComments().

COMMENTS::addComment ( timestamp,
comment 
)

COMMENTS::isValidComment ( comment,
&$  spamcheck 
)

Definition at line 283 of file COMMENTS.php.

References $manager, $member, and isValidMailAddress().

Referenced by addComment().


Member Data Documentation

COMMENTS::$itemid

Definition at line 28 of file COMMENTS.php.

Referenced by addComment(), and COMMENTS().

COMMENTS::$itemActions

Definition at line 31 of file COMMENTS.php.

Referenced by setItemActions().

COMMENTS::$commentcount

Definition at line 34 of file COMMENTS.php.


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:02 2008 by  doxygen 1.5.5