// $Id$
//
-
// +X2C includes
require_once 'BIFE/Container.php';
// ~X2C
* @abstract
*/
class BIFE_Generic extends BIFE_Container {
- /**
- * Attribute list.
- *
- * @var array $attrs
- * @access public
- */
- var $attrs;
-
// ~X2C
// +X2C Operation 10
*/
function __construct($attrs) // ~X2C
{
- parent::__construct();
- $this->attrs = $attrs;
+ parent::__construct($attrs);
}
// -X2C
// +X2C Operation 11
/**
- * Add contents to the widget.
+ * Add contents to the container.
*
* @param mixed &$contents Contents to add.
*
/**
* Renders the widget.
*
- * @param HTML_Template_Sigma &$template Template to use to render the widget.
+ * @param HTML_Template_HIT &$template Template to use to render the widget.
*
* @return string
* @access public
*/
function render(&$template) // ~X2C
{
- $contents = parent::render($template);
- $template->loadTemplateFile(get_class($this).'.html');
- $template->setVariable($this->attrs);
- $template->setVariable('CONTENTS', $contents);
- return $template->get();
+ $this->attrs['CONTENTS'] = parent::render($template);
+ $template->setGroup();
+ $out = $template->parse(get_class($this), $this->attrs);
+ $template->unsetGroup();
+ return $out;
}
// -X2C