PHP Class Newscoop\Comment\SearchService

Inheritance: implements Newscoop\Search\ServiceInterface
Exibir arquivo Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$articleLinkService Newscoop\Article\LinkService
$em Doctrine\ORM\EntityManager

Public Methods

Method 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 method

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

getDocument() public method

Get document for comment
public getDocument ( Newscoop\Search\DocumentInterface $comment ) : array
$comment Newscoop\Search\DocumentInterface
return array

getDocumentId() public method

Get document id
public getDocumentId ( Newscoop\Search\DocumentInterface $comment ) : string
$comment Newscoop\Search\DocumentInterface
return string

getSubType() public method

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

getType() public method

Return type for this search service
public getType ( ) : string
return string identifier

isIndexable() public method

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

isIndexed() public method

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

Property Details

$articleLinkService protected_oe property

protected LinkService,Newscoop\Article $articleLinkService
return Newscoop\Article\LinkService

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager