PHP 클래스 Newscoop\ArticlesBundle\Services\EditorialCommentsService

파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\ORM\EntityManage Entity Manager

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

create() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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

resolve() 공개 메소드

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

프로퍼티 상세

$em 보호되어 있는 프로퍼티

Entity Manager
protected Doctrine\ORM\EntityManage $em
리턴 Doctrine\ORM\EntityManage