CodeDoc/Data/Method.php
[PHP_CodeDoc] / CodeDoc / Data / Method.php
index 18b782e..9b48162 100644 (file)
@@ -108,14 +108,14 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
                 
                 
                 array(
-                    'name' => $this->name,
+                    'name' => $this->name == '__construct' ? ('new ' . $this->class) : $this->name,
                     'purpose' => $this->description->short,
                     'stype' => 'function',
                     '|xns' => 'Roo.doc',
                     'xtype' => 'Entry',
                     'items' => array(
                         array(
-                            'name' => $this->name,
+                            'name' => $this->name == '__construct' ? ('new ' . $this->class) : $this->name,
                             'is_static' => $this->isStatic ? true:false,
                             'memberof' => $this->class,
                             'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc,