TYPO3 CMS  TYPO3_6-2
ExtDirectDebug.php
Go to the documentation of this file.
1 <?php
3 
22 
28  protected $debugMessages = array();
29 
38  public function __destruct() {
39 
40  }
41 
48  public function debug($message) {
49  $this->debugMessages[] = $message;
50  }
51 
57  public function toString() {
58  $messagesAsString = '';
59  if (count($this->debugMessages)) {
60  $messagesAsString = \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($this->debugMessages);
61  }
62  return $messagesAsString;
63  }
64 
65 }