* @access public
*/
class BIFE_Page extends BIFE_Root {
- /**
- * Attributes.
- *
- * @var array $attrs
- * @access protected
- */
- var $attrs;
-
// ~X2C
// +X2C Operation 15
function __construct($attrs) // ~X2C
{
parent::__construct($attrs);
- $this->attrs = $attrs;
}
// -X2C
/**
* Returns the rendered widget as a string.
*
- * @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('bife_page.html');
- $template->setVariable($this->attrs);
- $template->setVariable('CONTENTS', $contents);
- return $template->get();
+ $this->attrs['CONTENTS'] = parent::render($template);
+ $template->setGroup();
+ $out = $template->parse('bife_page', $this->attrs);
+ $template->unsetGroup();
+ return $out;
}
// -X2C