PHP Class Sulu\Bundle\ContentBundle\Search\Metadata\StructureProvider

Inheritance: implements Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Massive\Bundle\SearchBundle\Search\Factory $factory, Sulu\Component\DocumentManager\Metadata\MetadataFactory $metadataFactory, StructureMetadataFactory $structureFactory, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, array $mapping = [] )
getAllMetadata ( )
getMetadata ( Sulu\Component\DocumentManager\Metadata $documentMetadata, StructureMetadata $structure )
getMetadataForDocument ( Massive\Bundle\SearchBundle\Search\Document $document )
getMetadataForObject ( object $object ) : Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadataInterface | null loads metadata for a given class if its derived from StructureInterface.

Private Methods

Method Description
getContentField ( PropertyMetadata $property )
mapProperty ( PropertyMetadata $property, $metadata )
mapTeaserDescription ( PropertyMetadata $property, Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadata $metadata )
mapTeaserMedia ( PropertyMetadata $property, Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadata $metadata )

Method Details

__construct() public method

public __construct ( Massive\Bundle\SearchBundle\Search\Factory $factory, Sulu\Component\DocumentManager\Metadata\MetadataFactory $metadataFactory, StructureMetadataFactory $structureFactory, Sulu\Component\Content\Extension\ExtensionManagerInterface $extensionManager, array $mapping = [] )
$factory Massive\Bundle\SearchBundle\Search\Factory
$metadataFactory Sulu\Component\DocumentManager\Metadata\MetadataFactory
$structureFactory Sulu\Component\Content\Metadata\Factory\StructureMetadataFactory
$extensionManager Sulu\Component\Content\Extension\ExtensionManagerInterface
$mapping array

getAllMetadata() public method

public getAllMetadata ( )

getMetadata() public method

public getMetadata ( Sulu\Component\DocumentManager\Metadata $documentMetadata, StructureMetadata $structure )
$documentMetadata Sulu\Component\DocumentManager\Metadata
$structure Sulu\Component\Content\Metadata\StructureMetadata

getMetadataForDocument() public method

public getMetadataForDocument ( Massive\Bundle\SearchBundle\Search\Document $document )
$document Massive\Bundle\SearchBundle\Search\Document

getMetadataForObject() public method

loads metadata for a given class if its derived from StructureInterface.
public getMetadataForObject ( object $object ) : Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadataInterface | null
$object object
return Massive\Bundle\SearchBundle\Search\Metadata\IndexMetadataInterface | null