CodeDoc/Data/Method.php
authorAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 09:11:24 +0000 (17:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Oct 2016 09:11:24 +0000 (17:11 +0800)
CodeDoc/Data/Method.php

index 18b782e..0561f8c 100644 (file)
@@ -98,7 +98,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
         return
         
         array(
-            "name" => $this->name,
+            "name" => $this->name == '__construct' ? ('new ' . $this->class) : $this->name,
             "parent" => "",
             "title" => "",
             "permname" => "",
@@ -115,7 +115,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
                     '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,