|
TYPO3 API
SVNRelease
|
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 * Storage backend interface 00030 * 00031 * @package Extbase 00032 * @subpackage Persistence\Storage 00033 * @version $Id: BackendInterface.php 1971 2010-03-08 16:59:04Z jocrau $ 00034 */ 00035 interface Tx_Extbase_Persistence_Storage_BackendInterface { 00036 00037 /** 00038 * Adds a row to the storage 00039 * 00040 * @param string $tableName The database table name 00041 * @param array $row The row to insert 00042 * @param boolean $isRelation TRUE if we are currently inserting into a relation table, FALSE by default 00043 * @return void 00044 */ 00045 public function addRow($tableName, array $row, $isRelation = FALSE); 00046 00047 /** 00048 * Updates a row in the storage 00049 * 00050 * @param string $tableName The database table name 00051 * @param array $row The row to update 00052 * @param boolean $isRelation TRUE if we are currently inserting into a relation table, FALSE by default 00053 * @return void 00054 */ 00055 public function updateRow($tableName, array $row, $isRelation = FALSE); 00056 00057 /** 00058 * Deletes a row in the storage 00059 * 00060 * @param string $tableName The database table name 00061 * @param array $identifier An array of identifier array('fieldname' => value). This array will be transformed to a WHERE clause 00062 * @param boolean $isRelation TRUE if we are currently inserting into a relation table, FALSE by default 00063 * @return void 00064 */ 00065 public function removeRow($tableName, array $identifier, $isRelation = FALSE); 00066 00067 /** 00068 * Returns the number of items matching the query. 00069 * 00070 * @param Tx_Extbase_Persistence_QueryInterface $query 00071 * @return integer 00072 * @api 00073 */ 00074 public function getObjectCountByQuery(Tx_Extbase_Persistence_QueryInterface $query); 00075 00076 /** 00077 * Returns the object data matching the $query. 00078 * 00079 * @param Tx_Extbase_Persistence_QueryInterface $query 00080 * @return array 00081 * @api 00082 */ 00083 public function getObjectDataByQuery(Tx_Extbase_Persistence_QueryInterface $query); 00084 00085 } 00086 ?>
1.8.0