Fixed bug #17184: Disable the CSRF protection in ExtDirect calls coming from the...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_timetracknull.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2008 Ingo Renner <ingo@typo3.org>
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 /**
27 * A fake time tracker that does nothing but providing the methods of the real time tracker.
28 * This is done to save some performance over the real time tracker.
29 *
30 * @author Ingo Renner <ingo@typo3.org>
31 * @package TYPO3
32 * @subpackage t3lib
33 */
34 class t3lib_TimeTrackNull {
35 /**
36 * "Constructor"
37 * Sets the starting time
38 *
39 * does nothing
40 *
41 * @return void
42 */
43 public function start() {
44 }
45
46 /**
47 * Pushes an element to the TypoScript tracking array
48 *
49 * does nothing
50 *
51 * @param string Label string for the entry, eg. TypoScript property name
52 * @param string Additional value(?)
53 * @return void
54 */
55 public function push($tslabel, $value = '') {
56 }
57
58 /**
59 * Pulls an element from the TypoScript tracking array
60 *
61 * does nothing
62 *
63 * @param string The content string generated within the push/pull part.
64 * @return void
65 */
66 public function pull($content = '') {
67 }
68
69 /**
70 * Set TSselectQuery - for messages in TypoScript debugger.
71 *
72 * does nothing
73 *
74 * @param array Query array
75 * @param string Message/Label to attach
76 * @return void
77 */
78 public function setTSselectQuery(array $data, $msg = '') {
79 }
80
81 /**
82 * Logs the TypoScript entry
83 *
84 * does nothing
85 *
86 * @param string The message string
87 * @param integer Message type: 0: information, 1: message, 2: warning, 3: error
88 * @return void
89 */
90 public function setTSlogMessage($content, $num = 0) {
91 }
92
93 /**
94 * Print TypoScript parsing log
95 *
96 * does nothing
97 *
98 * @return string HTML table with the information about parsing times.
99 */
100 public function printTSlog() {
101 }
102
103 /**
104 * Increases the stack pointer
105 *
106 * does nothing
107 *
108 * @return void
109 */
110 public function incStackPointer() {
111 }
112
113 /**
114 * Decreases the stack pointer
115 *
116 * does nothing
117 *
118 * @return void
119 */
120 public function decStackPointer() {
121 }
122
123 /**
124 * Returns microtime input to milliseconds
125 *
126 * does nothing
127 *
128 * @param string PHP microtime string
129 * @return integer
130 */
131 public function convertMicrotime($microtime) {
132 }
133
134 /**
135 * Gets a microtime value as milliseconds value.
136 *
137 * @param float $microtime: The microtime value - if not set the current time is used
138 * @return integer The microtime value as milliseconds value
139 */
140 public function getMilliseconds($microtime = NULL) {
141 }
142
143 }
144
145 // XCLASSing is not possible for this class
146
147 ?>