{
$ret = array();
$cats = array();
+ $cls = str_replace('_','-',strtolower($this->name))
foreach($this->Operations as $op) {
if (!isset($op->description->category)) {
$cats[$op->description->category] = isset($cats[$op->description->category]) ? $cats[$op->description->category] : array();
$cats[$op->description->category][] = $op;
}
- $ret[str_replace('_','-',strtolower($this->name)). '/'.$op->name] = $op->toJS();
+ $n = $cls . '/'. ($op->name == '__construct' ? 'new' : $op->name;;
+ $ret[$n] = $op->toJS();
}
foreach($this->Attributes as $op) {
// $ret[$this->name . '.'.$op->name] = $op->toJS();