CodeDoc/Data/Method.php
[PHP_CodeDoc] / CodeDoc / Data / Method.php
index 0561f8c..9d63b56 100644 (file)
@@ -98,7 +98,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
         return
         
         array(
-            "name" => $this->name == '__construct' ? ('new ' . $this->class) : $this->name,
+            "name" => $this->name ,
             "parent" => "",
             "title" => "",
             "permname" => "",
@@ -108,15 +108,17 @@ 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 == '__construct' ? ('new ' . $this->class) : $this->name,
+                            'name' => $this->name ,
                             'is_static' => $this->isStatic ? true:false,
+                            'is_constructor' => $this->name == '__construct' ,
                             'memberof' => $this->class,
                             'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc,
                             'returntype' => $this->name == '_construct' ? '' : $this->description->return->type,
@@ -147,11 +149,13 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
                             '|xns' => 'Roo.doc',
                             'xtype' => 'Section',
                         ),
+                        /* -- fixme - needs to read from an example file..
                         array(
                             'stype' => 'example',
                             '|xns' => 'Roo.doc',
                             'xtype' => 'Section',
                         )
+                        */
                     )   
                 )
             )