PHP Class Neos\Neos\Domain\Service\NodeSearchService

Inheritance: implements Neos\Neos\Domain\Service\NodeSearchServiceInterface
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeFactory Neos\ContentRepository\Domain\Factory\NodeFactory
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

Public Methods

Method Description
findByProperties ( string | array $term, array $searchNodeTypes, Context $context, Neos\ContentRepository\Domain\Model\NodeInterface $startingPoint = null ) : array Search all properties for given $term

Method Details

findByProperties() public method

TODO: Implement a better search when Flow offer the possibility
public findByProperties ( string | array $term, array $searchNodeTypes, Context $context, Neos\ContentRepository\Domain\Model\NodeInterface $startingPoint = null ) : array
$term string | array search term
$searchNodeTypes array
$context Neos\ContentRepository\Domain\Service\Context
$startingPoint Neos\ContentRepository\Domain\Model\NodeInterface
return array <\Neos\ContentRepository\Domain\Model\NodeInterface>

Property Details

$nodeDataRepository protected property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$nodeFactory protected property

protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory
return Neos\ContentRepository\Domain\Factory\NodeFactory

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface