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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler Content type handler.
$fieldRegistry eZ\Publish\Core\Search\Common\FieldRegistry Field registry.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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 méthode

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
Résultat eZ\Publish\Core\Search\Legacy\Content\FullTextValue[]

mapContent() public méthode

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

Property Details

$contentTypeHandler protected_oe property

Content type handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler
Résultat eZ\Publish\SPI\Persistence\Content\Type\Handler

$fieldRegistry protected_oe property

Field registry.
protected FieldRegistry,eZ\Publish\Core\Search\Common $fieldRegistry
Résultat eZ\Publish\Core\Search\Common\FieldRegistry