[!!!][TASK] Rewrite install tool
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / PostProcessQueryHookInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\Database;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2011-2013 Xavier Perseguers <typo3@perseguers.ch>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
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 * Interface for classes which hook into \TYPO3\CMS\Core\Database\DatabaseConnection
31 * and do additional processing after a query has been executed.
32 *
33 * @author Xavier Perseguers <typo3@perseguers.ch>
34 */
35 interface PostProcessQueryHookInterface {
36 /**
37 * Post-processor for the SELECTquery method.
38 *
39 * @param string $select_fields Fields to be selected
40 * @param string $from_table Table to select data from
41 * @param string $where_clause Where clause
42 * @param string $groupBy Group by statement
43 * @param string $orderBy Order by statement
44 * @param integer $limit Database return limit
45 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
46 * @return void
47 */
48 public function exec_SELECTquery_postProcessAction(&$select_fields, &$from_table, &$where_clause, &$groupBy, &$orderBy, &$limit, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
49
50 /**
51 * Post-processor for the exec_INSERTquery method.
52 *
53 * @param string $table Database table name
54 * @param array $fieldsValues Field values as key => value pairs
55 * @param string/array $noQuoteFields List/array of keys NOT to quote
56 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
57 * @return void
58 */
59 public function exec_INSERTquery_postProcessAction(&$table, array &$fieldsValues, &$noQuoteFields, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
60
61 /**
62 * Post-processor for the exec_INSERTmultipleRows method.
63 *
64 * @param string $table Database table name
65 * @param array $fields Field names
66 * @param array $rows Table rows
67 * @param string/array $noQuoteFields List/array of keys NOT to quote
68 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
69 * @return void
70 */
71 public function exec_INSERTmultipleRows_postProcessAction(&$table, array &$fields, array &$rows, &$noQuoteFields, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
72
73 /**
74 * Post-processor for the exec_UPDATEquery method.
75 *
76 * @param string $table Database table name
77 * @param string $where WHERE clause
78 * @param array $fieldsValues Field values as key => value pairs
79 * @param string/array $noQuoteFields List/array of keys NOT to quote
80 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
81 * @return void
82 */
83 public function exec_UPDATEquery_postProcessAction(&$table, &$where, array &$fieldsValues, &$noQuoteFields, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
84
85 /**
86 * Post-processor for the exec_DELETEquery method.
87 *
88 * @param string $table Database table name
89 * @param string $where WHERE clause
90 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
91 * @return void
92 */
93 public function exec_DELETEquery_postProcessAction(&$table, &$where, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
94
95 /**
96 * Post-processor for the exec_TRUNCATEquery method.
97 *
98 * @param string $table Database table name
99 * @param \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject
100 * @return void
101 */
102 public function exec_TRUNCATEquery_postProcessAction(&$table, \TYPO3\CMS\Core\Database\DatabaseConnection $parentObject);
103
104 }
105
106 ?>