TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Selector Class Reference
Inheritance diagram for Selector:
SelectorInterface 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 (   $selectorName,
  $nodeTypeName 
)

Constructs the Selector instance

Parameters
string$selectorName
string$nodeTypeName

Definition at line 46 of file Selector.php.

References Selector\$nodeTypeName, and Selector\$selectorName.

Member Function Documentation

getNodeTypeName ( )

Gets the name of the required node type.

Returns
string the node type name; non-null

Implements SelectorInterface.

Definition at line 57 of file Selector.php.

References Selector\$nodeTypeName.

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 SelectorInterface.

Definition at line 68 of file Selector.php.

References Selector\$selectorName.

Member Data Documentation

$nodeTypeName
protected

Definition at line 33 of file Selector.php.

Referenced by Selector\__construct(), and Selector\getNodeTypeName().

$selectorName
protected

Definition at line 38 of file Selector.php.

Referenced by Selector\__construct(), and Selector\getSelectorName().