PHP 클래스 Newscoop\Article\SearchService

상속: implements Newscoop\Search\ServiceInterface
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$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