CodeDoc/Data/Method.php
[PHP_CodeDoc] / CodeDoc / Data / Method.php
index c14a2c1..28120f4 100644 (file)
@@ -128,13 +128,31 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
           
         );
         
-        if ( $this->name != '_construct') {
+        if ( $this->name != '__construct') {
             $items[] = array(
                 'stype' => 'return',
                 '|xns' => 'Roo.doc',
                 'xtype' => 'Section',
             );
         }
+        if ( !empty($this->description->throws)) {
+           
+            $items[] = array(
+                'stype' => 'throws',
+                '|xns' => 'Roo.doc',
+                'xtype' => 'Section',
+                'items' => array(
+                    array(
+                        '|xns' => 'Roo.doc',
+                        'xtype' => 'para',
+                        'html' => $this->description->throws
+                    )
+                    
+                )
+            );
+        }
+        
+        
                         /* -- fixme - needs to read from an example file..
                         array(
                             'stype' => 'example',
@@ -162,7 +180,7 @@ class PHP_CodeDoc_Data_Method extends PHP_CodeDoc_Data {
                     
                     'items' => $items
                          
-                    )   
+                    
                 )
             )
         );