CodeDoc/Data/Class.php
authorAlan Knowles <alan@roojs.com>
Mon, 17 Oct 2016 01:49:50 +0000 (09:49 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Oct 2016 01:49:50 +0000 (09:49 +0800)
CodeDoc/Data/Class.php

index 12ee4c6..c7ffac2 100644 (file)
@@ -96,16 +96,17 @@ class PHP_CodeDoc_Data_Class {
                 
             )
         );
-        foreach($ar as $cc) {
-            $cname = $c=$cc=;
-            if ($cc == '__construct') {
-                $cname = 'new '
+        foreach($ar as $op) {
+            $c = $cname = $op->name;
+            if ($c == '__construct') {
+                print_R($op);exit;
+                $cname = 'new ' . $op->cls;
             }
             $ret['items'][] = array(
                 '|xns' => 'Roo.bootstrap',
                 'xtype' => 'NavItem',
                 'href' => '#' . str_replace('_','-',strtolower($this->name)). '/'.$c,
-                'html' => $c
+                'html' => $cname
             );
         }
         return $ret;