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