PHP Class Newscoop\Article\SearchService

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

Protected Properties

Свойство Type Description
$config array
$em Doctrine\ORM\EntityManager
$linkService LinkService
$renditionService Newscoop\Image\RenditionService
$switches array
$webcoder Newscoop\Webcode\Mapper

Méthodes publiques

Méthode Description
__construct ( WebcodeFacade $webcoder, RenditionService $renditionService, LinkService $linkService, EntityManager $em )
getArticleDatetime ( Article $article ) : ArticleDatetime Get event article datetime
getArticleSwitches ( Article $article ) : array Get article switches
getDocument ( Newscoop\Search\DocumentInterface $article ) : array Get document representation for article
getDocumentId ( Newscoop\Search\DocumentInterface $article ) : string Get document id
getSubType ( Newscoop\Search\DocumentInterface $article ) : string Return sub type for the document
getType ( ) : string Return type for this search service
isIndexable ( Newscoop\Search\DocumentInterface $article ) : boolean Test if article can be indexed
isIndexed ( Newscoop\Search\DocumentInterface $article ) : boolean Test if article is indexed
searchArticles ( $articleSearchCriteria, $onlyPublished = true )

Private Methods

Méthode Description
addDataFields ( array $doc, $article ) : array Add field properties to document

Method Details

__construct() public méthode

public __construct ( WebcodeFacade $webcoder, RenditionService $renditionService, LinkService $linkService, EntityManager $em )
$webcoder Newscoop\WebcodeFacade
$renditionService Newscoop\Image\RenditionService
$linkService LinkService
$em Doctrine\ORM\EntityManager

getArticleDatetime() public méthode

Get event article datetime
public getArticleDatetime ( Article $article ) : ArticleDatetime
$article Newscoop\Entity\Article
Résultat ArticleDatetime

getArticleSwitches() public méthode

Get article switches
public getArticleSwitches ( Article $article ) : array
$article Newscoop\Entity\Article
Résultat array

getDocument() public méthode

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

getDocumentId() public méthode

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

getSubType() public méthode

Return sub type for the document
public getSubType ( Newscoop\Search\DocumentInterface $article ) : string
$article 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 article can be indexed
public isIndexable ( Newscoop\Search\DocumentInterface $article ) : boolean
$article Newscoop\Search\DocumentInterface
Résultat boolean

isIndexed() public méthode

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

searchArticles() public méthode

public searchArticles ( $articleSearchCriteria, $onlyPublished = true )

Property Details

$config protected_oe property

protected array $config
Résultat array

$em protected_oe property

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

$linkService protected_oe property

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

$renditionService protected_oe property

protected RenditionService,Newscoop\Image $renditionService
Résultat Newscoop\Image\RenditionService

$switches protected_oe property

protected array $switches
Résultat array

$webcoder protected_oe property

protected Newscoop\Webcode\Mapper $webcoder
Résultat Newscoop\Webcode\Mapper