|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* * 00004 * This script is part of the TYPO3 project - inspiring people to share! * 00005 * * 00006 * TYPO3 is free software; you can redistribute it and/or modify it under * 00007 * the terms of the GNU General Public License version 2 as published by * 00008 * the Free Software Foundation. * 00009 * * 00010 * This script is distributed in the hope that it will be useful, but * 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * 00012 * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * 00013 * Public License for more details. * 00014 * */ 00015 00016 /** 00017 * Wrapper for TYPO3s famous debug() function 00018 * 00019 * = Examples = 00020 * 00021 * <code title="Simple"> 00022 * <f:debug>{testVariables.array}</f:debug> 00023 * </code> 00024 * <output> 00025 * foobarbazfoo 00026 * </output> 00027 */ 00028 class Tx_Fluid_ViewHelpers_DebugViewHelper extends Tx_Fluid_Core_ViewHelper_AbstractViewHelper { 00029 00030 /** 00031 * Wrapper for TYPO3s famous debug() function 00032 * 00033 * @param string $title 00034 * @return string the altered string. 00035 * @author Bastian Waidelich <bastian@typo3.org> 00036 */ 00037 public function render($title = NULL) { 00038 ob_start(); 00039 t3lib_div::debug($this->renderChildren(), $title); 00040 $output = ob_get_contents(); 00041 ob_end_clean(); 00042 return $output; 00043 } 00044 } 00045 00046 00047 ?>
1.8.0