diff options
author | Simon | 2011-03-06 18:24:42 +0100 |
---|---|---|
committer | Simon | 2011-03-06 18:24:42 +0100 |
commit | 1e3fc3def6918568f4e36026c46feadbe3c24e7c (patch) | |
tree | d0cdacea52336e147b20eeca7d0c85277a38aeb8 /application/Bootstrap.php | |
parent | aufgeraeumt (diff) | |
download | pbs2-1e3fc3def6918568f4e36026c46feadbe3c24e7c.tar.gz pbs2-1e3fc3def6918568f4e36026c46feadbe3c24e7c.tar.xz pbs2-1e3fc3def6918568f4e36026c46feadbe3c24e7c.zip |
print_a funktion zum debugging hinzugefügt damit sie von überall benutzbar ist && evaluate in Filter zu großen Teilen fertig, ebenso die Auswertung, welche BootMenuID zurückgegeben werden soll
Diffstat (limited to 'application/Bootstrap.php')
-rw-r--r-- | application/Bootstrap.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 6ac8a0e..a836253 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -8,4 +8,24 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap $auth->setStorage(new Zend_Auth_Storage_Session('auth')); } } +function print_a(){ + $numargs = func_num_args(); + if($numargs>1){ + $out = ''; + ob_start(); + echo "<div style='background-color:#FFCC33;border:1px solid black;margin:3px;padding:5px;'>"; + for($a=0;$a<$numargs;$a++) + print_a(func_get_arg($a)); + echo "</div>"; + $out .= ob_get_contents(); + ob_end_clean(); + echo $out; + }else{ + echo "<pre style='background-color:#FFDF80;border:1px solid #000;margin:3px;padding:5px;'>"; + $a = func_get_arg(0); + $a = (is_bool($a))?(($a)?'true':'false'):$a; + print_r($a); + echo "</pre>"; + } +} |