PHP Класс Newscoop\ArticlesBundle\Services\EditorialCommentsService

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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