PHP Class Newscoop\Comment\SearchService

Inheritance: implements Newscoop\Search\ServiceInterface
Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$articleLinkService Newscoop\Article\LinkService
$em Doctrine\ORM\EntityManager

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

getDocument() public méthode

Get document for comment
public getDocument ( Newscoop\Search\DocumentInterface $comment ) : array
$comment Newscoop\Search\DocumentInterface
Résultat array

getDocumentId() public méthode

Get document id
public getDocumentId ( Newscoop\Search\DocumentInterface $comment ) : string
$comment Newscoop\Search\DocumentInterface
Résultat string

getSubType() public méthode

Return type for this search service
public getSubType ( Newscoop\Search\DocumentInterface $comment ) : string
$comment Newscoop\Search\DocumentInterface
Résultat string identifier

getType() public méthode

Return type for this search service
public getType ( ) : string
Résultat string identifier

isIndexable() public méthode

Test if comment can be indexed
public isIndexable ( Newscoop\Search\DocumentInterface $comment ) : boolean
$comment Newscoop\Search\DocumentInterface
Résultat boolean

isIndexed() public méthode

Test if comment is indexed
public isIndexed ( Newscoop\Search\DocumentInterface $comment ) : boolean
$comment Newscoop\Search\DocumentInterface
Résultat boolean

Property Details

$articleLinkService protected_oe property

protected LinkService,Newscoop\Article $articleLinkService
Résultat Newscoop\Article\LinkService

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager