[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 113 lignes (4 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 12 fois |
Nécessite: | 0 fichiers |
ArticleComments:: (8 méthodes):
ArticleComments()
getPostComments()
getNumPostComments()
getIdenticalComment()
purgeSpamComments()
getComment()
getBlogComments()
getNumBlogComments()
Classe: ArticleComments - X-Ref
\ingroup DAOArticleComments() X-Ref |
Pas de description |
getPostComments( $artid, $order = COMMENT_ORDER_NEWEST_FIRST, $status = COMMENT_STATUS_ALL, $page = -1, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE ) X-Ref |
Retrieves all the comments for a post param: artid The article identifier param: order The order in which comments should be retrieved param: status The status that the comment should have, use COMMENT_STATUS_ALL for param: page param: itemsPerPage return: False if error or an array of ArticleComments objects |
getNumPostComments( $artId, $status = COMMENT_STATUS_ALL ) X-Ref |
Returns the total number of comments for a post param: artId the post id param: status return: The number of comments |
getIdenticalComment( $topic, $text, $articleId, $parentId = 0, $userName = "", $userEmail = "", $userUrl = "", $clientIp = "0.0.0.0" ) X-Ref |
Returns true if there already is a comment in the database with the same article_id field, topic, text, replying to the same comment, username and so on Useful in case we want to check if the user sent the same comment by mistake by pressing the 'reload' button twice or something... return: Returns true if there already is such comment or false otherwise. |
purgeSpamComments() X-Ref |
removes all comments marked as spam from the database |
getComment( $id ) X-Ref |
returns a single comment, identified by its... identifier :) |
getBlogComments( $blogId, $order = COMMENT_ORDER_NEWEST_FIRST, $status = COMMENT_STATUS_ALL, $searchTerms = "", $page = -1, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE ) X-Ref |
returns the lastest $maxItems comments received in the blog param: blogId param: order param: status param: searchTerms, param: page param: itemsPerPage return: An array of ArticleComment objects |
getNumBlogComments( $blogId, $status = COMMENT_STATUS_ALL, $type = COMMENT_TYPE_ANY, $searchTerms = "" ) X-Ref |
Returns the total number of comments for a given blog param: artId the post id param: status param: type param: searchTerms return: The number of comments |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |