{
$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();
)
);
- foreach($ar as $cc) {
- $cname = $c=$cc=;
- if ($cc == '__construct') {
- $cname = 'new '
+ foreach($ar as $op) {
+ $c = $cname = $op->name;
+ if ($c == '__construct') {
+ $cname = 'new ' . $op->{'class'};
+ $c = 'new';
}
$ret['items'][] = array(
'|xns' => 'Roo.bootstrap',
'xtype' => 'NavItem',
'href' => '#' . str_replace('_','-',strtolower($this->name)). '/'.$c,
- 'html' => $c
+ 'html' => $cname
);
}
return $ret;