/[cvs]/nfo/php/libs/org.netfrag.glib/Class/Abstract.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/Class/Abstract.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Tue Mar 11 01:10:00 2003 UTC revision 1.5 by joko, Sat Apr 5 21:21:44 2003 UTC
# Line 15  Line 15 
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   *   *
# Line 59  class Class_Abstract { Line 62  class Class_Abstract {
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'));

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed