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 | |
Definition at line 25 of file COMMENTS.php.
| COMMENTS::COMMENTS | ( | $ | itemid | ) |
Creates a new COMMENTS object for the given blog and item
| $itemid | id of the item |
Definition at line 42 of file COMMENTS.php.
References $itemid.
| COMMENTS::setItemActions | ( | &$ | itemActions | ) |
Used when parsing comments
| $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)
| 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 | |||
| ) |
Definition at line 135 of file COMMENTS.php.
References $blogid, $CONF, $itemid, $manager, $member, $memberid, $query, createItemLink(), getBlogIDFromItemID(), getMailFooter(), MEMBER::isNameProtected(), isValidComment(), mysql_insert_id(), COMMENT::prepare(), serverVar(), and sql_query().
| COMMENTS::isValidComment | ( | $ | comment, | |
| &$ | spamcheck | |||
| ) |
Definition at line 283 of file COMMENTS.php.
References $manager, $member, and isValidMailAddress().
Referenced by addComment().
| COMMENTS::$itemid |
| COMMENTS::$itemActions |
| COMMENTS::$commentcount |
Definition at line 34 of file COMMENTS.php.
1.5.5