$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();
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