Changeset 12528

Show
Ignore:
Timestamp:
02/19/08 14:17:03 (11 months ago)
Author:
pottedmeat
Message:

Refs #5602. Make sure all inheritance chain is themed and ignore type object if we can't find a type

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/branches/dev/jsdoc/jsdoc.module

    r12527 r12528  
    28702870          if ($children[$title]) { 
    28712871            $found = false; 
    2872             foreach ($children[$title]->inheritance as $parent) { 
    2873               if ($parent->title == $mixin->title) { 
    2874                 $found = true; 
    2875                 break; 
     2872            if ($children[$title]->inheritance) { 
     2873              foreach ($children[$title]->inheritance as $parent) { 
     2874                if ($parent->title == $mixin->title) { 
     2875                  $found = true; 
     2876                  break; 
     2877                } 
    28762878              } 
    28772879            } 
     
    28912893            $children[$title] = _jsdoc_get_object_themed($item, $title); 
    28922894            if ($mixin->title != $node->title) { 
    2893               $children[$title]->inheritance[] = (object)array( 
    2894                 'title' => $mixin->title, 
    2895                 'summary' => jsdoc_get_teaser($mixin), 
    2896                 'url' => $mixin->jsdoc_url 
    2897               ); 
     2895              $children[$title]->inheritance[] = _jsdoc_get_object_themed($mixin); 
    28982896            } 
    28992897          } 
     
    29112909    } 
    29122910  } 
     2911  print_r($children); 
    29132912  uksort($children, "strnatcasecmp"); 
    29142913 
     
    29672966  $object = (object)array( 
    29682967    'title' => $title, 
    2969     'type' => (object)array( 
    2970       'title' => '', 
    2971       'url' => '', 
    2972       'a' => '' 
    2973     ), 
    29742968    'url' => $node->jsdoc_url, 
    29752969    'summary' => jsdoc_get_teaser($node), 
     
    29842978  } 
    29852979 
    2986   if ($type = jsdoc_object_node_load(jsdoc_get_type($node), jsdoc_get_project($node), jsdoc_get_version($node), jsdoc_get_all_provide_nids($node, array(3, 4)))) { 
    2987     $object->type->title = $type->title; 
    2988     $object->type->url = $type->jsdoc_url; 
     2980  if ($type = jsdoc_get_type($node)) { 
     2981    $type = jsdoc_object_node_load($type, jsdoc_get_project($node), jsdoc_get_version($node), jsdoc_get_all_provide_nids($node, array(3, 4))); 
     2982    $object->type = (object)array( 
     2983      'title' => $type->title, 
     2984      'url' => $type->jsdoc_url 
     2985    ); 
    29892986    if ($type->jsdoc_url) { 
    29902987      $object->type->a = l($type->title, $type->jsdoc_url);