Selector

class \TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector

Implements
SelectorInterface

Selects a subset of the nodes in the repository based on node type.

A selector selects every node in the repository, subject to access control constraints, that satisfies at least one of the following conditions:

the node's primary node type is nodeType, or the node's primary node type is a subtype of nodeType, or the node has a mixin node type that is nodeType, or the node has a mixin node type that is a subtype of nodeType.

Table of Contents

Interfaces

SelectorInterface
Selects a subset of the nodes in the repository based on node type.

Properties

$nodeTypeName  : string
$selectorName  : string

Methods

__construct()  : mixed
Constructs the Selector instance
getNodeTypeName()  : string
Gets the name of the required node type.
getSelectorName()  : string
Gets the selector name.

Properties

$nodeTypeName

protected string $nodeTypeName

$selectorName

protected string $selectorName

Methods

__construct()

Constructs the Selector instance

public __construct(string $selectorName, string $nodeTypeName) : mixed

Parameters

$selectorName : string
$nodeTypeName : string

getNodeTypeName()

Gets the name of the required node type.

public getNodeTypeName() : string

Return values

string —

the node type name; non-null

getSelectorName()

Gets the selector name.

public getSelectorName() : string

A selector's name can be used elsewhere in the query to identify the selector.

Return values

string —

the selector name; non-null

On this page