PHP Class Neos\ContentRepository\Eel\FlowQueryOperations\FindOperation

Example (node name): q(node).find('main') Example (relative path): q(node).find('main/text1') Example (absolute path): q(node).find('/sites/my-site/home') Example (identifier): q(node).find('#30e893c1-caef-0ca5-b53d-e5699bb8e506') Example (node type): q(node).find('[instanceof Neos.Neos.NodeTypes:Text]') Example (multiple node types): q(node).find('[instanceof Neos.Neos.NodeTypes:Text],[instanceof Neos.Neos.NodeTypes:Image]') Example (node type with filter): q(node).find('[instanceof Neos.Neos.NodeTypes:Text][text*="Neos"]')
Inheritance: extends Neos\Eel\FlowQuery\Operations\AbstractOperation
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$priority integer
$shortName string

Public Methods

Method Description
canEvaluate ( $context ) : boolean
evaluate ( FlowQuery $flowQuery, array $arguments ) : void

Protected Methods

Method Description
hasOnlyInstanceOfFilters ( array $filters ) : boolean Check if the parsed filters only contain instanceof filters (e.g. "[instanceof Foo],[instanceof Bar]")

Method Details

canEvaluate() public method

public canEvaluate ( $context ) : boolean
return boolean TRUE if the operation can be applied onto the $context, FALSE otherwise

evaluate() public method

public evaluate ( FlowQuery $flowQuery, array $arguments ) : void
$flowQuery Neos\Eel\FlowQuery\FlowQuery the FlowQuery object
$arguments array the arguments for this operation
return void

hasOnlyInstanceOfFilters() protected method

Check if the parsed filters only contain instanceof filters (e.g. "[instanceof Foo],[instanceof Bar]")
protected hasOnlyInstanceOfFilters ( array $filters ) : boolean
$filters array
return boolean

Property Details

$nodeDataRepository protected_oe property

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

$priority protected_oe static_oe property

protected static int $priority
return integer

$shortName protected_oe static_oe property

protected static string $shortName
return string