Extbase:
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / QueryInterface.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 /**
26 * A persistence query interface
27 *
28 * @package TYPO3
29 * @subpackage Extbase
30 * @version $Id$
31 */
32 interface Tx_Extbase_Persistence_QueryInterface {
33
34 /**
35 * Executes the query against the backend and returns the result
36 *
37 * @return array The query result, an array of objects
38 */
39 public function execute();
40
41 /**
42 * The constraint used to limit the result set
43 *
44 * @param Tx_Extbase_Persistence_ConstraintInterface $constraint Some constraint, depending on the backend
45 * @return Tx_Extbase_Persistence_QueryInterface
46 */
47 public function matching(Tx_Extbase_Persistence_ConstraintInterface $constraint);
48
49 }
50 ?>