--- nfo/php/libs/org.netfrag.glib/Class/Abstract.php 2003/03/11 01:10:00 1.4 +++ nfo/php/libs/org.netfrag.glib/Class/Abstract.php 2003/04/05 21:21:44 1.5 @@ -12,9 +12,12 @@ * Cvs-Log: * *
- * $Id: Abstract.php,v 1.4 2003/03/11 01:10:00 joko Exp $ + * $Id: Abstract.php,v 1.5 2003/04/05 21:21:44 joko Exp $ * * $Log: Abstract.php,v $ + * Revision 1.5 2003/04/05 21:21:44 joko + * modified debug-/log-message building + * * Revision 1.4 2003/03/11 01:10:00 joko * + fixed metadata for phpDocumentor * @@ -59,9 +62,17 @@ $inheritance_tree = php::get_ancestors_class($this); array_push($inheritance_tree, get_class($this)); - $inheritance_tree_serialized = join(' -> ', $inheritance_tree); - $out = "Base class '$required_by' requires method '$method' to be implemented in inherited class. inheritance_tree: [$inheritance_tree_serialized] (additional info: $message)"; + $buf_arr = array(); + $indent = ''; + foreach ($inheritance_tree as $class) { + array_push($buf_arr, $indent . $class); + $indent .= ' '; + } + $buf = join(' -> ' . "\n", $buf_arr); + + //$out = "Base class '$required_by' requires method '$method' to be implemented in inherited class. inheritance_tree: [$inheritance_tree_serialized] (additional info: $message)"; + $out = "Class '$required_by' requires method '$method' to be implemented.\ninheritance tree: {\n$buf\n}\n(additional info: $message)"; user_error($out); $this->__call_concrete_methods(array('about', 'usage'));