echo "missing Category for {$this->name}::{$op->name}\n";
} else {
$cats[$op->description->category] = isset($cats[$op->description->category]) ? $cats[$op->description->category] : array();
- $cats[$op->description->category][] = str_replace('_','-',sstrtolower($this->name)). '/'. $op->name;
+ $cats[$op->description->category][] = $op->name;
}
$ret[str_replace('_','-',strtolower($this->name)). '/'.$op->name] = $op->toJS();
}
foreach($this->Attributes as $op) {
// $ret[$this->name . '.'.$op->name] = $op->toJS();
}
+ $ret[str_replace('_','-',strtolower($this->name))] = $cats;
return $ret;
}