Commit f39aa3e6 by sn

D::show aktualisiert

1 parent 08779a1b
Showing with 23 additions and 2 deletions
...@@ -148,10 +148,10 @@ class D { ...@@ -148,10 +148,10 @@ class D {
// self::new_echo("<br>______________________<br>", $param_print, $param_force); // self::new_echo("<br>______________________<br>", $param_print, $param_force);
self::printCurrentFunction($param_print,"<br>______________________<br>", true); self::printCurrentFunction($param_print,"<br>______________________<br>");
// self::new_echo("<b>show(".$param_string.")</b>", $param_print, $param_force); // self::new_echo("<b>show(".$param_string.")</b>", $param_print, $param_force);
$string_show = "<br /><b>show(".$param_string.") -- </b><br />"; $string_show = "<br /><b>show(".$param_string.")</b><br />";
if(is_object($param_val) && get_class($param_val)=='DOMElement') { if(is_object($param_val) && get_class($param_val)=='DOMElement') {
D::showdomelement($param_val, $string_show.$param_string,$param_print, $param_force); D::showdomelement($param_val, $string_show.$param_string,$param_print, $param_force);
...@@ -159,6 +159,27 @@ class D { ...@@ -159,6 +159,27 @@ class D {
if(is_array($param_val)) { if(is_array($param_val)) {
$string_show .= "count(".$param_val.") = ".count($param_val).""; $string_show .= "count(".$param_val.") = ".count($param_val)."";
// self::new_echo("<br/>count(".$param_val.") = ".count($param_val)."", $param_print, $param_force); // self::new_echo("<br/>count(".$param_val.") = ".count($param_val)."", $param_print, $param_force);
} else if(is_object($param_val)) {
$objvars = get_object_vars($param_val);
sort($objvars);
$objfncs = get_class_methods(get_class($param_val));
sort($objfncs);
$parent = get_parent_class($param_val);
while($parent) {
$parents .= ' extends <b>'.$parent.'</b>';
$parent = get_parent_class($parent);
}
$param_val = array(
'classname' => '<b>'.get_class($param_val).'</b>'.$parents,
'objvars' => $objvars,
'objfncs' => $objfncs,
'obj' => $param_val,
);
} }
// self::new_echo("<pre>", $param_print, $param_force); // self::new_echo("<pre>", $param_print, $param_force);
$string_show .= "<pre>"; $string_show .= "<pre>";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!