TYPO3 CMS  TYPO3_6-2
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 Tx_Extbase_Persistence_QOM_Selector

Public Member Functions

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

Protected Attributes

 $nodeTypeName
 
 $selectorName
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 27 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 45 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 55 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 65 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