PHP Класс Newscoop\Comment\SearchService

Наследование: implements Newscoop\Search\ServiceInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$articleLinkService Newscoop\Article\LinkService
$em Doctrine\ORM\EntityManager

Открытые методы

Метод Описание
__construct ( LinkService $articleLinkService, EntityManager $em )
getDocument ( Newscoop\Search\DocumentInterface $comment ) : array Get document for comment
getDocumentId ( Newscoop\Search\DocumentInterface $comment ) : string Get document id
getSubType ( Newscoop\Search\DocumentInterface $comment ) : string Return type for this search service
getType ( ) : string Return type for this search service
isIndexable ( Newscoop\Search\DocumentInterface $comment ) : boolean Test if comment can be indexed
isIndexed ( Newscoop\Search\DocumentInterface $comment ) : boolean Test if comment is indexed

Описание методов

__construct() публичный метод

public __construct ( LinkService $articleLinkService, EntityManager $em )
$articleLinkService Newscoop\Article\LinkService
$em Doctrine\ORM\EntityManager

getDocument() публичный метод

Get document for comment
public getDocument ( Newscoop\Search\DocumentInterface $comment ) : array
$comment Newscoop\Search\DocumentInterface
Результат array

getDocumentId() публичный метод

Get document id
public getDocumentId ( Newscoop\Search\DocumentInterface $comment ) : string
$comment Newscoop\Search\DocumentInterface
Результат string

getSubType() публичный метод

Return type for this search service
public getSubType ( Newscoop\Search\DocumentInterface $comment ) : string
$comment Newscoop\Search\DocumentInterface
Результат string identifier

getType() публичный метод

Return type for this search service
public getType ( ) : string
Результат string identifier

isIndexable() публичный метод

Test if comment can be indexed
public isIndexable ( Newscoop\Search\DocumentInterface $comment ) : boolean
$comment Newscoop\Search\DocumentInterface
Результат boolean

isIndexed() публичный метод

Test if comment is indexed
public isIndexed ( Newscoop\Search\DocumentInterface $comment ) : boolean
$comment Newscoop\Search\DocumentInterface
Результат boolean

Описание свойств

$articleLinkService защищенное свойство

protected LinkService,Newscoop\Article $articleLinkService
Результат Newscoop\Article\LinkService

$em защищенное свойство

protected EntityManager,Doctrine\ORM $em
Результат Doctrine\ORM\EntityManager