}
- return
+ $items = array(
+ array(
+ 'name' => $this->name ,
+ 'is_static' => $this->isStatic ? true:false,
+ 'is_constructor' => $this->name == '__construct' ,
+ 'memberof' => $this->class,
+ 'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc,
+ 'returntype' => $this->name == '_construct' ? '' : $this->description->return->type,
+
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Synopsis',
+ 'items' => $params
+ ),
+ array(
+ 'stype' => 'desc',
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Section',
+ 'items' => array(
+ array(
+ 'html' => $this->description->long,
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Para',
+ )
+ )
+ ),
+ array(
+ 'stype' => 'parameter',
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Section',
+ ),
+
+ );
- array(
+ if ( $this->name != '_construct') {
+ $items[] = array(
+ 'stype' => 'return',
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Section',
+ );
+ }
+ /* -- fixme - needs to read from an example file..
+ array(
+ 'stype' => 'example',
+ '|xns' => 'Roo.doc',
+ 'xtype' => 'Section',
+ )
+ */
+
+ return array(
"name" => $this->name ,
"parent" => "",
"title" => "",
'|xns' => 'Roo.doc',
'xtype' => 'Entry',
- 'items' => array(
- array(
- 'name' => $this->name ,
- 'is_static' => $this->isStatic ? true:false,
- 'is_constructor' => $this->name == '__construct' ,
- 'memberof' => $this->class,
- 'returndesc' => $this->name == '_construct' ? '' : $this->description->return->desc,
- 'returntype' => $this->name == '_construct' ? '' : $this->description->return->type,
-
- '|xns' => 'Roo.doc',
- 'xtype' => 'Synopsis',
- 'items' => $params
- ),
- array(
- 'stype' => 'desc',
- '|xns' => 'Roo.doc',
- 'xtype' => 'Section',
- 'items' => array(
- array(
- 'html' => $this->description->long,
- '|xns' => 'Roo.doc',
- 'xtype' => 'Para',
- )
- )
- ),
- array(
- 'stype' => 'parameter',
- '|xns' => 'Roo.doc',
- 'xtype' => 'Section',
- ),
- array(
- 'stype' => 'return',
- '|xns' => 'Roo.doc',
- 'xtype' => 'Section',
- ),
- /* -- fixme - needs to read from an example file..
- array(
- 'stype' => 'example',
- '|xns' => 'Roo.doc',
- 'xtype' => 'Section',
- )
- */
+ 'items' => $items
+
)
)
)