PHP Class Newscoop\ArticlesBundle\Services\EditorialCommentsService

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManage Entity Manager

Public Methods

Method Description
__construct ( EntityManager $em )
create ( string $commentContent, Article $article, User $user, Newscoop\ArticlesBundle\Entity\EditorialComment\null $parrentComment = null ) Create new editorial comment for Article
edit ( string $commentContent, EditorialComment $comment, User $user ) Edit existing editorial comment message
remove ( EditorialComment $comment, User $user ) Remove (soft) existing editorial comment
resolve ( EditorialComment $comment, User $user, $value = true ) Resolve existing editorial comment

Method Details

__construct() public method

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager [description]

create() public method

Create new editorial comment for Article
public create ( string $commentContent, Article $article, User $user, Newscoop\ArticlesBundle\Entity\EditorialComment\null $parrentComment = null )
$commentContent string
$article Newscoop\Entity\Article
$user Newscoop\Entity\User
$parrentComment Newscoop\ArticlesBundle\Entity\EditorialComment\null

edit() public method

Edit existing editorial comment message
public edit ( string $commentContent, EditorialComment $comment, User $user )
$commentContent string
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

remove() public method

Remove (soft) existing editorial comment
public remove ( EditorialComment $comment, User $user )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

resolve() public method

Resolve existing editorial comment
public resolve ( EditorialComment $comment, User $user, $value = true )
$comment Newscoop\ArticlesBundle\Entity\EditorialComment
$user Newscoop\Entity\User

Property Details

$em protected property

Entity Manager
protected Doctrine\ORM\EntityManage $em
return Doctrine\ORM\EntityManage