Source for file dump.php
Documentation is available at dump.php
* Dumps values of the given variable, or the entire data if nothing provided
* * var : the variable to display
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the use of this software.
* This file is released under the LGPL
* "GNU Lesser General Public License"
* More information can be found here:
* {@link http://www.gnu.org/copyleft/lesser.html}
* @copyright Copyright (c) 2008, Jordi Boggiano
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
public function process($var =
'$')
$var =
$this->dwoo->getData();
$out =
'<div style="background:#aaa; padding:5px; margin:5px; color:#000;">data';
$out =
'<div style="background:#aaa; padding:5px; margin:5px; color:#000;">dump';
$scope =
$this->dwoo->getScope();
$out .=
' (current scope): <div style="background:#ccc;">';
$out .=
':<div style="padding-left:20px;">';
$out .=
$this->export($var, $scope);
return $out .
'</div></div>';
protected function export($var, $scope)
foreach ($var as $i=>
$v) {
$out .=
' (current scope):<div style="background:#ccc;padding-left:20px;">'.
$this->export($v, $scope).
'</div>';
$out .=
':<div style="padding-left:20px;">'.
$this->export($v, $scope).
'</div>';
Documentation generated on Sun, 03 Aug 2008 15:12:27 +0200 by phpDocumentor 1.4.0