PHP Класс Newscoop\Article\SearchService

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

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

Свойство Тип Описание
$config array
$em Doctrine\ORM\EntityManager
$linkService LinkService
$renditionService Newscoop\Image\RenditionService
$switches array
$webcoder Newscoop\Webcode\Mapper

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

Метод Описание
__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 )

Приватные методы

Метод Описание
addDataFields ( array $doc, $article ) : array Add field properties to document

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

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

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

getArticleDatetime() публичный Метод

Get event article datetime
public getArticleDatetime ( Article $article ) : ArticleDatetime
$article Newscoop\Entity\Article
Результат ArticleDatetime

getArticleSwitches() публичный Метод

Get article switches
public getArticleSwitches ( Article $article ) : array
$article Newscoop\Entity\Article
Результат array

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

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

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

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

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

Return sub type for the document
public getSubType ( Newscoop\Search\DocumentInterface $article ) : string
$article Newscoop\Search\DocumentInterface
Результат string identifier

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

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

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

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

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

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

searchArticles() публичный Метод

public searchArticles ( $articleSearchCriteria, $onlyPublished = true )

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

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

protected array $config
Результат array

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

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

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

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

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

protected RenditionService,Newscoop\Image $renditionService
Результат Newscoop\Image\RenditionService

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

protected array $switches
Результат array

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

protected Newscoop\Webcode\Mapper $webcoder
Результат Newscoop\Webcode\Mapper