[TASK] Use Time Tracker only
[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 use TYPO3\CMS\Core\Utility\GeneralUtility;
17
18 /**
19 * A fake time tracker that does nothing but providing the methods of the real time tracker.
20 * This is done to save some performance over the real time tracker.
21 * @deprecated since TYPO3 v8, will be removed in v9
22 */
23 class NullTimeTracker
24 {
25 /**
26 * "Constructor"
27 * Sets the starting time
28 *
29 * does nothing
30 *
31 * @return void
32 * @deprecated since TYPO3 v8, will be removed in v9, use the regular time tracking
33 */
34 public function start()
35 {
36 GeneralUtility::logDeprecatedFunction();
37 }
38
39 /**
40 * Pushes an element to the TypoScript tracking array
41 *
42 * does nothing
43 *
44 * @param string $tslabel Label string for the entry, eg. TypoScript property name
45 * @param string $value Additional value(?)
46 * @return void
47 */
48 public function push($tslabel, $value = '')
49 {
50 }
51
52 /**
53 * Pulls an element from the TypoScript tracking array
54 *
55 * does nothing
56 *
57 * @param string $content The content string generated within the push/pull part.
58 * @return void
59 */
60 public function pull($content = '')
61 {
62 }
63
64 /**
65 * Set TSselectQuery - for messages in TypoScript debugger.
66 *
67 * does nothing
68 *
69 * @param array $data Query array
70 * @param string $msg Message/Label to attach
71 * @return void
72 */
73 public function setTSselectQuery(array $data, $msg = '')
74 {
75 }
76
77 /**
78 * Logs the TypoScript entry
79 *
80 * does nothing
81 *
82 * @param string $content The message string
83 * @param int $num Message type: 0: information, 1: message, 2: warning, 3: error
84 * @return void
85 */
86 public function setTSlogMessage($content, $num = 0)
87 {
88 }
89
90 /**
91 * Print TypoScript parsing log
92 *
93 * does nothing
94 *
95 * @return string HTML table with the information about parsing times.
96 */
97 public function printTSlog()
98 {
99 }
100
101 /**
102 * Increases the stack pointer
103 *
104 * does nothing
105 *
106 * @return void
107 */
108 public function incStackPointer()
109 {
110 }
111
112 /**
113 * Decreases the stack pointer
114 *
115 * does nothing
116 *
117 * @return void
118 */
119 public function decStackPointer()
120 {
121 }
122
123 /**
124 * Gets a microtime value as milliseconds value.
125 *
126 * @param float $microtime The microtime value - if not set the current time is used
127 * @return int The microtime value as milliseconds value
128 */
129 public function getMilliseconds($microtime = null)
130 {
131 }
132 }