Method | Description | |
---|---|---|
countByUser ( |
Get comments count for user | |
deleteArticle ( Newscoop\Entity\Article $article, Newscoop\Entity\Language $language = null ) | Delete article comments | |
deleteCommenter ( Newscoop\Entity\Commenter $commenter ) | Delete commenter comments | |
deleteCommenters ( array $commenters ) | Delete commenter comments | |
flush ( ) | Flush method | |
getArticleComments ( integer $article, string $language, $recommended = false, $getDeleted = true, $showHidden = true ) : Doctrine\ORM\Query | Get comments for article | |
getBatch ( mixed $count = self::BATCH_COUNT, array $filter = null ) : array | Find comments for indexing | |
getComment ( integer $id, $getDeleted = true ) : Query | Get single comment query | |
getComments ( $getDeleted = true, $showHidden = true ) : Query | Get all comments query | |
getCommentsForAuthorArticlesPerDay ( |
Get Comments for all authors articles grouped by day | |
getCount ( array $p_params = null, array $p_cols = [] ) : integer | Get entity count | |
getData ( array $p_params, array $p_cols ) : |
Get data for table | |
getDirectReplies ( $commentId ) | Get direct replies to a comment | |
getPrototype ( ) : |
Get new instance of the comment | |
save ( |
Method for saving a comment | |
setArticleStatus ( integer $p_article, $p_language, string $p_status ) : void | Method for setting status per article | |
setCommentRecommended ( |
Method for setting recommended for a comment | |
setIndexedNow ( array $comments ) : void | Set indexed now | |
setIndexedNull ( array $comments = null ) : void | Set indexed null | |
setRecommended ( array $commentIds, integer $recommended ) : void | Method for recommending a comment | |
setStatus ( array $p_comment_ids, string $p_status ) : void | Method for setting status | |
update ( |
Method for update a comment |
Method | Description | |
---|---|---|
buildFilter ( array $p_cols, array $p_filter, $qb, $andx ) | Build filter condition | |
buildWhere ( array $p_cols, $p_search, $qb = null, $andx = null ) : Doctrine\ORM\Query\Expr | Build where condition |
Method | Description | |
---|---|---|
setCommentStatus ( |
Method for setting status for a comment |
protected buildFilter ( array $p_cols, array $p_filter, $qb, $andx ) | ||
$p_cols | array | |
$p_filter | array |
protected buildWhere ( array $p_cols, $p_search, $qb = null, $andx = null ) : Doctrine\ORM\Query\Expr | ||
$p_cols | array | |
return | Doctrine\ORM\Query\Expr |
public countByUser ( |
||
$user | ||
return | integer |
public deleteArticle ( Newscoop\Entity\Article $article, Newscoop\Entity\Language $language = null ) | ||
$article | Newscoop\Entity\Article | |
$language | Newscoop\Entity\Language |
public deleteCommenter ( Newscoop\Entity\Commenter $commenter ) | ||
$commenter | Newscoop\Entity\Commenter |
public deleteCommenters ( array $commenters ) | ||
$commenters | array |
public getArticleComments ( integer $article, string $language, $recommended = false, $getDeleted = true, $showHidden = true ) : Doctrine\ORM\Query | ||
$article | integer | Article number |
$language | string | Language code in format "en" for example. |
return | Doctrine\ORM\Query | Query |
public getComment ( integer $id, $getDeleted = true ) : Query | ||
$id | integer | |
return | Query |
public getComments ( $getDeleted = true, $showHidden = true ) : Query | ||
return | Query |
public getCommentsForAuthorArticlesPerDay ( |
||
$author | ||
$range | string | |
return | Doctrine\ORM\Query |
public getDirectReplies ( $commentId ) | ||
$commentId | return array |
public getPrototype ( ) : |
||
return |
public setCommentRecommended ( |
||
$comment | ||
$recommended | string | |
return | void |
public setIndexedNow ( array $comments ) : void | ||
$comments | array | |
return | void |
public setIndexedNull ( array $comments = null ) : void | ||
$comments | array | |
return | void |