PHP Class eZ\Publish\Core\Search\Legacy\Content\Mapper\FullTextMapper

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler Content type handler.
$fieldRegistry eZ\Publish\Core\Search\Common\FieldRegistry Field registry.

Public Methods

Method Description
__construct ( FieldRegistry $fieldRegistry, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler )
mapContent ( eZ\Publish\SPI\Persistence\Content $content ) : FullTextData Map given Content to a FullTextValue.

Protected Methods

Method Description
getFullTextValues ( eZ\Publish\SPI\Persistence\Content $content ) : FullTextValue[] Returns an array of FullTextValue object containing searchable values of content object fields for the given $content.

Private Methods

Method Description
getFullTextFieldValue ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) : string Get FullTextField value.

Method Details

__construct() public method

public __construct ( FieldRegistry $fieldRegistry, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler )
$fieldRegistry eZ\Publish\Core\Search\Common\FieldRegistry
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler

getFullTextValues() protected method

Returns an array of FullTextValue object containing searchable values of content object fields for the given $content.
protected getFullTextValues ( eZ\Publish\SPI\Persistence\Content $content ) : FullTextValue[]
$content eZ\Publish\SPI\Persistence\Content
return eZ\Publish\Core\Search\Legacy\Content\FullTextValue[]

mapContent() public method

Map given Content to a FullTextValue.
public mapContent ( eZ\Publish\SPI\Persistence\Content $content ) : FullTextData
$content eZ\Publish\SPI\Persistence\Content
return eZ\Publish\Core\Search\Legacy\Content\FullTextData

Property Details

$contentTypeHandler protected property

Content type handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler
return eZ\Publish\SPI\Persistence\Content\Type\Handler

$fieldRegistry protected property

Field registry.
protected FieldRegistry,eZ\Publish\Core\Search\Common $fieldRegistry
return eZ\Publish\Core\Search\Common\FieldRegistry