TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector:
TYPO3\CMS\Extbase\Persistence\Generic\Qom\SelectorInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface

Public Member Functions

 __construct ($selectorName, $nodeTypeName)
 
 getNodeTypeName ()
 
 getSelectorName ()
 

Protected Attributes

 $nodeTypeName
 
 $selectorName
 

Detailed Description

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.

Definition at line 28 of file Selector.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector::__construct (   $selectorName,
  $nodeTypeName 
)

Constructs the Selector instance

Parameters
string$selectorName
string$nodeTypeName

Definition at line 46 of file Selector.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector\$nodeTypeName, and TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector\$selectorName.

Member Function Documentation

◆ getNodeTypeName()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector::getNodeTypeName ( )

Gets the name of the required node type.

Returns
string the node type name; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\SelectorInterface.

Definition at line 57 of file Selector.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector\$nodeTypeName.

◆ getSelectorName()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector::getSelectorName ( )

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

Returns
string the selector name; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\SelectorInterface.

Definition at line 68 of file Selector.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector\$selectorName.

Member Data Documentation

◆ $nodeTypeName

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector::$nodeTypeName
protected

◆ $selectorName

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Selector::$selectorName
protected