[TASK] Namespace classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Qom / SelectorInterface.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
8 * All rights reserved
9 *
10 * This class is a backport of the corresponding class of FLOW3.
11 * All credits go to the v5 team.
12 *
13 * This script is part of the TYPO3 project. The TYPO3 project is
14 * free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
18 *
19 * The GNU General Public License can be found at
20 * http://www.gnu.org/copyleft/gpl.html.
21 *
22 * This script is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * This copyright notice MUST APPEAR in all copies of the script!
28 ***************************************************************/
29 /**
30 * Selects a subset of the nodes in the repository based on node type.
31 *
32 * A selector selects every node in the repository, subject to access control
33 * constraints, that satisfies at least one of the following conditions:
34 *
35 * the node's primary node type is nodeType, or
36 * the node's primary node type is a subtype of nodeType, or
37 * the node has a mixin node type that is nodeType, or
38 * the node has a mixin node type that is a subtype of nodeType.
39 *
40 * @package Extbase
41 * @subpackage Persistence\QOM
42 * @version $Id$
43 */
44 interface SelectorInterface extends \TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface
45 {
46 /**
47 * Gets the name of the required node type.
48 *
49 * @return string the node type name; non-null
50 */
51 public function getNodeTypeName();
52
53 /**
54 * Gets the selector name.
55 * A selector's name can be used elsewhere in the query to identify the selector.
56 *
57 * @return the selector name; non-null
58 */
59 public function getSelectorName();
60
61 }
62
63 ?>