CodeDoc/Data/Class.php
[PHP_CodeDoc] / CodeDoc / Data / Class.php
index 0c9db5c..07545af 100644 (file)
@@ -66,7 +66,7 @@ class PHP_CodeDoc_Data_Class {
         $cats = array();
         foreach($this->Operations as $op) {
             
-            if (!isset($cats[$op->description->category])) {
+            if (!isset($op->description->category)) {
                 echo "missing Category for {$this->name}::{$op->name}\n";
             } else {
                 $cats[$op->description->category] = isset($cats[$op->description->category]) ? $cats[$op->description->category] : array();
@@ -77,10 +77,24 @@ class PHP_CodeDoc_Data_Class {
         foreach($this->Attributes as $op) {
          //   $ret[$this->name . '.'.$op->name] = $op->toJS();
         }
-        $ret[str_replace('_','-',strtolower($this->name))] = $cats;
+        $ret[ $this->name] = array();
+        foreach($cats as $k=>$v ) {
+            $ret[ $this->name][$k] = $this->catsToJs($v);
+        }
+        
+    
         return $ret;
     }
     
+    function catsToJs($ar)
+    {
+        
+        
+        
+        
+    }
+    
+    
 
 }
 ?>
\ No newline at end of file