TYPO3 API  SVNRelease
QuerySettingsInterface.php
Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
00006 *  All rights reserved
00007 *
00008 *  This class is a backport of the corresponding class of FLOW3.
00009 *  All credits go to the v5 team.
00010 *
00011 *  This script is part of the TYPO3 project. The TYPO3 project is
00012 *  free software; you can redistribute it and/or modify
00013 *  it under the terms of the GNU General Public License as published by
00014 *  the Free Software Foundation; either version 2 of the License, or
00015 *  (at your option) any later version.
00016 *
00017 *  The GNU General Public License can be found at
00018 *  http://www.gnu.org/copyleft/gpl.html.
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00027 
00028 /**
00029  * A query settings interface. This interface is NOT part of the FLOW3 API.
00030  *
00031  * @package Extbase
00032  * @subpackage Persistence
00033  * @version $Id: QuerySettingsInterface.php 1729 2009-11-25 21:37:20Z stucki $
00034  */
00035 interface Tx_Extbase_Persistence_QuerySettingsInterface {
00036 
00037     /**
00038      * Sets the flag if the storage page should be respected for the query.
00039      *
00040      * @param boolean $respectStoragePage If TRUE the storage page ID will be determined and the statement will be extended accordingly.
00041      * @return Tx_Extbase_Persistence_QuerySettingsInterface instance of $this to allow method chaining
00042      * @api
00043      */
00044     public function setRespectStoragePage($respectStoragePage);
00045 
00046     /**
00047      * Returns the state, if the storage page should be respected for the query.
00048      *
00049      * @return boolean TRUE, if the storage page should be respected; otherwise FALSE.
00050      */
00051     public function getRespectStoragePage();
00052 
00053     /**
00054      * Sets the pid(s) of the storage page(s) that should be respected for the query.
00055      *
00056      * @param array $respectStoragePage If TRUE the storage page ID will be determined and the statement will be extended accordingly.
00057      * @return Tx_Extbase_Persistence_QuerySettingsInterface instance of $this to allow method chaining
00058      * @api
00059      */
00060     public function setStoragePageIds(array $storagePageIds);
00061 
00062     /**
00063      * Returns the pid(s) of the storage page(s) that should be respected for the query.
00064      *
00065      * @return array list of integers that each represent a storage page id
00066      */
00067     public function getStoragePageIds();
00068 
00069     /**
00070      * Sets the flag if a  and language overlay should be performed.
00071      *
00072      * @param boolean $respectEnableFields TRUE if a  and language overlay should be performed.
00073      * @return Tx_Extbase_Persistence_QuerySettingsInterface instance of $this to allow method chaining
00074      * @api
00075      */
00076     public function setRespectSysLanguage($respectSysLanguage);
00077 
00078     /**
00079      * Returns the state, if a  and language overlay should be performed.
00080      *
00081      * @return boolean TRUE, if a  and language overlay should be performed; otherwise FALSE.
00082      */
00083     public function getRespectSysLanguage();
00084 
00085     /**
00086      * Sets the flag if the visibility in the frontend should be respected.
00087      *
00088      * @param boolean $respectEnableFields TRUE if the visibility in the frontend should be respected. If TRUE, the "enable fields" of TYPO3 will be added to the query statement.
00089      * @return Tx_Extbase_Persistence_QuerySettingsInterface instance of $this to allow method chaining
00090      * @api
00091      */
00092     public function setRespectEnableFields($respectEnableFields);
00093 
00094     /**
00095      * Returns the state, if the visibility settings for the frontend should be respected for the query.
00096      *
00097      * @return boolean TRUE, if the visibility settings for the frontend should should be respected; otherwise FALSE.
00098      */
00099     public function getRespectEnableFields();
00100 
00101     /**
00102      * Sets the state, if the QueryResult should be returned unmapped.
00103      *
00104      * @var boolean $returnRawQueryResult TRUE, if the QueryResult should be returned unmapped; otherwise FALSE.
00105      * @return void
00106      */
00107     public function setReturnRawQueryResult($returnRawQueryResult);
00108 
00109     /**
00110      * Returns the state, if the QueryResult should be returned unmapped.
00111      *
00112      * @return boolean TRUE, if the QueryResult should be returned unmapped; otherwise FALSE.
00113      */
00114     public function getReturnRawQueryResult();
00115 
00116 }
00117 ?>