PHP Класс eZ\Publish\Core\Search\Elasticsearch\Content\Mapper\StandardMapper

Наследование: implements eZ\Publish\Core\Search\Elasticsearch\Content\MapperInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$contentHandler eZ\Publish\SPI\Persistence\Content\Handler Content handler.
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler Content type handler.
$fieldNameGenerator eZ\Publish\Core\Search\Common\FieldNameGenerator Field name generator.
$fieldRegistry eZ\Publish\Core\Search\Common\FieldRegistry Field registry.
$locationHandler eZ\Publish\SPI\Persistence\Content\Location\Handler Location handler.
$objectStateHandler eZ\Publish\SPI\Persistence\Content\ObjectState\Handler Object state handler.
$sectionHandler eZ\Publish\SPI\Persistence\Content\Section\Handler Section handler.

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

Метод Описание
__construct ( FieldRegistry $fieldRegistry, FieldNameGenerator $fieldNameGenerator, eZ\Publish\SPI\Persistence\Content\Handler $contentHandler, eZ\Publish\SPI\Persistence\Content\Location\Handler $locationHandler, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, eZ\Publish\SPI\Persistence\Content\ObjectState\Handler $objectStateHandler, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler )
mapContent ( eZ\Publish\SPI\Persistence\Content $content ) : Document Maps given Content to a Document.
mapContentById ( integer | string $contentId ) : Document Maps given Content by given $contentId to a Document.
mapLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) : Document Maps given Location to a Document.

Защищенные методы

Метод Описание
getAncestorLocationsContentIds ( integer | string $contentId ) : array Returns Content ids of all ancestor Locations of all Locations of a Content with given $contentId.
getObjectStateIds ( integer | string $contentId ) : array Returns an array of object state ids of a Content with given $contentId.
mapContentLocation ( eZ\Publish\SPI\Persistence\Content\Location $location, eZ\Publish\SPI\Persistence\Content $content ) : Document Maps given $location of a $content to a Document.
mapFields ( eZ\Publish\SPI\Persistence\Content $content, eZ\Publish\SPI\Persistence\Content\Type $contentType ) : Document[] Returns an array of documents containing fields for the given $content.

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

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

public __construct ( FieldRegistry $fieldRegistry, FieldNameGenerator $fieldNameGenerator, eZ\Publish\SPI\Persistence\Content\Handler $contentHandler, eZ\Publish\SPI\Persistence\Content\Location\Handler $locationHandler, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, eZ\Publish\SPI\Persistence\Content\ObjectState\Handler $objectStateHandler, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler )
$fieldRegistry eZ\Publish\Core\Search\Common\FieldRegistry
$fieldNameGenerator eZ\Publish\Core\Search\Common\FieldNameGenerator
$contentHandler eZ\Publish\SPI\Persistence\Content\Handler
$locationHandler eZ\Publish\SPI\Persistence\Content\Location\Handler
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler
$objectStateHandler eZ\Publish\SPI\Persistence\Content\ObjectState\Handler
$sectionHandler eZ\Publish\SPI\Persistence\Content\Section\Handler

getAncestorLocationsContentIds() защищенный Метод

Used to determine user groups of a user with $contentId.
protected getAncestorLocationsContentIds ( integer | string $contentId ) : array
$contentId integer | string
Результат array

getObjectStateIds() защищенный Метод

Returns an array of object state ids of a Content with given $contentId.
protected getObjectStateIds ( integer | string $contentId ) : array
$contentId integer | string
Результат array

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

Maps given Content to a Document.
public mapContent ( eZ\Publish\SPI\Persistence\Content $content ) : Document
$content eZ\Publish\SPI\Persistence\Content
Результат eZ\Publish\Core\Search\Elasticsearch\Content\Document

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

Maps given Content by given $contentId to a Document.
public mapContentById ( integer | string $contentId ) : Document
$contentId integer | string
Результат eZ\Publish\Core\Search\Elasticsearch\Content\Document

mapContentLocation() защищенный Метод

Returned Location Document is to be used as nested Document of a Content, not searchable directly but only through Content Search.
protected mapContentLocation ( eZ\Publish\SPI\Persistence\Content\Location $location, eZ\Publish\SPI\Persistence\Content $content ) : Document
$location eZ\Publish\SPI\Persistence\Content\Location
$content eZ\Publish\SPI\Persistence\Content
Результат eZ\Publish\Core\Search\Elasticsearch\Content\Document

mapFields() защищенный Метод

Each document contains fields for a single language.
protected mapFields ( eZ\Publish\SPI\Persistence\Content $content, eZ\Publish\SPI\Persistence\Content\Type $contentType ) : Document[]
$content eZ\Publish\SPI\Persistence\Content
$contentType eZ\Publish\SPI\Persistence\Content\Type
Результат eZ\Publish\Core\Search\Elasticsearch\Content\Document[]

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

Returned Document represents a "parent" Location document searchable with Location Search.
public mapLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) : Document
$location eZ\Publish\SPI\Persistence\Content\Location
Результат eZ\Publish\Core\Search\Elasticsearch\Content\Document

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

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

Content handler.
protected Handler,eZ\Publish\SPI\Persistence\Content $contentHandler
Результат eZ\Publish\SPI\Persistence\Content\Handler

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

Content type handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler
Результат eZ\Publish\SPI\Persistence\Content\Type\Handler

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

Field name generator.
protected FieldNameGenerator,eZ\Publish\Core\Search\Common $fieldNameGenerator
Результат eZ\Publish\Core\Search\Common\FieldNameGenerator

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

Field registry.
protected FieldRegistry,eZ\Publish\Core\Search\Common $fieldRegistry
Результат eZ\Publish\Core\Search\Common\FieldRegistry

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

Location handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Location $locationHandler
Результат eZ\Publish\SPI\Persistence\Content\Location\Handler

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

Object state handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\ObjectState $objectStateHandler
Результат eZ\Publish\SPI\Persistence\Content\ObjectState\Handler

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

Section handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Section $sectionHandler
Результат eZ\Publish\SPI\Persistence\Content\Section\Handler