From 21ca7dfd8acda83fe915f1d3f7a27727f9479de0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Oct 2016 09:49:50 +0800 Subject: [PATCH] CodeDoc/Data/Class.php --- CodeDoc/Data/Class.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CodeDoc/Data/Class.php b/CodeDoc/Data/Class.php index 12ee4c6..c7ffac2 100644 --- a/CodeDoc/Data/Class.php +++ b/CodeDoc/Data/Class.php @@ -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; -- 2.39.2