[TASK] Re-work/simplify copyright header in PHP files - Part 2
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / TimeTracker / NullTimeTracker.php
1 <?php
2 namespace TYPO3\CMS\Core\TimeTracker;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16 /**
17 * A fake time tracker that does nothing but providing the methods of the real time tracker.
18 * This is done to save some performance over the real time tracker.
19 *
20 * @author Ingo Renner <ingo@typo3.org>
21 */
22 class NullTimeTracker {
23
24 /**
25 * "Constructor"
26 * Sets the starting time
27 *
28 * does nothing
29 *
30 * @return void
31 */
32 public function start() {
33
34 }
35
36 /**
37 * Pushes an element to the TypoScript tracking array
38 *
39 * does nothing
40 *
41 * @param string $tslabel Label string for the entry, eg. TypoScript property name
42 * @param string $value Additional value(?)
43 * @return void
44 */
45 public function push($tslabel, $value = '') {
46
47 }
48
49 /**
50 * Pulls an element from the TypoScript tracking array
51 *
52 * does nothing
53 *
54 * @param string $content The content string generated within the push/pull part.
55 * @return void
56 */
57 public function pull($content = '') {
58
59 }
60
61 /**
62 * Set TSselectQuery - for messages in TypoScript debugger.
63 *
64 * does nothing
65 *
66 * @param array $data Query array
67 * @param string $msg Message/Label to attach
68 * @return void
69 */
70 public function setTSselectQuery(array $data, $msg = '') {
71
72 }
73
74 /**
75 * Logs the TypoScript entry
76 *
77 * does nothing
78 *
79 * @param string $content The message string
80 * @param integer $num Message type: 0: information, 1: message, 2: warning, 3: error
81 * @return void
82 */
83 public function setTSlogMessage($content, $num = 0) {
84
85 }
86
87 /**
88 * Print TypoScript parsing log
89 *
90 * does nothing
91 *
92 * @return string HTML table with the information about parsing times.
93 */
94 public function printTSlog() {
95
96 }
97
98 /**
99 * Increases the stack pointer
100 *
101 * does nothing
102 *
103 * @return void
104 */
105 public function incStackPointer() {
106
107 }
108
109 /**
110 * Decreases the stack pointer
111 *
112 * does nothing
113 *
114 * @return void
115 */
116 public function decStackPointer() {
117
118 }
119
120 /**
121 * Gets a microtime value as milliseconds value.
122 *
123 * @param float $microtime The microtime value - if not set the current time is used
124 * @return integer The microtime value as milliseconds value
125 */
126 public function getMilliseconds($microtime = NULL) {
127
128 }
129
130 }