| 15 |
* $Id$ |
* $Id$ |
| 16 |
* |
* |
| 17 |
* $Log$ |
* $Log$ |
| 18 |
|
* Revision 1.5 2003/04/05 21:21:44 joko |
| 19 |
|
* modified debug-/log-message building |
| 20 |
|
* |
| 21 |
* Revision 1.4 2003/03/11 01:10:00 joko |
* Revision 1.4 2003/03/11 01:10:00 joko |
| 22 |
* + fixed metadata for phpDocumentor |
* + fixed metadata for phpDocumentor |
| 23 |
* |
* |
| 62 |
|
|
| 63 |
$inheritance_tree = php::get_ancestors_class($this); |
$inheritance_tree = php::get_ancestors_class($this); |
| 64 |
array_push($inheritance_tree, get_class($this)); |
array_push($inheritance_tree, get_class($this)); |
|
$inheritance_tree_serialized = join(' -> ', $inheritance_tree); |
|
| 65 |
|
|
| 66 |
$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(); |
| 67 |
|
$indent = ''; |
| 68 |
|
foreach ($inheritance_tree as $class) { |
| 69 |
|
array_push($buf_arr, $indent . $class); |
| 70 |
|
$indent .= ' '; |
| 71 |
|
} |
| 72 |
|
$buf = join(' -> ' . "\n", $buf_arr); |
| 73 |
|
|
| 74 |
|
//$out = "Base class '$required_by' requires method '$method' to be implemented in inherited class. inheritance_tree: [$inheritance_tree_serialized] (additional info: $message)"; |
| 75 |
|
$out = "<pre>Class '$required_by' requires method '$method' to be implemented.\ninheritance tree: {\n$buf\n}\n(additional info: $message)</pre>"; |
| 76 |
user_error($out); |
user_error($out); |
| 77 |
|
|
| 78 |
$this->__call_concrete_methods(array('about', 'usage')); |
$this->__call_concrete_methods(array('about', 'usage')); |