X-Git-Url: http://git.roojs.org/?p=PHP_CodeDoc;a=blobdiff_plain;f=CodeDoc%2FData%2FMethod.php;h=0561f8ca3849d22b1d1e7b37645aa248b59f7db5;hp=18b782eebe3a020159f419756e8da28d1ef34f37;hb=031ca33663a13645af1156125e0f1da79cfb2198;hpb=7be4649f9f185fc4d978148479f2a3b852d4c36e diff --git a/CodeDoc/Data/Method.php b/CodeDoc/Data/Method.php index 18b782e..0561f8c 100644 --- a/CodeDoc/Data/Method.php +++ b/CodeDoc/Data/Method.php @@ -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,