* @abstract
*/
class BIFE_Widget {
+ /**
+ * Attribute list.
+ *
+ * @var array $attrs
+ * @access protected
+ */
+ var $attrs = array();
+
// ~X2C
- // +X2C Operation 4
+ // +X2C Operation 126
/**
- * Renders the widget returning a string.
-Renders the widget using a template returning a string with the
-results.
+ * Constructor.
*
- * @param HTML_Template_Sigma &$template Template object to render the widget.
+ * @param array $attrs Attributes.
*
* @return void
* @access public
+ */
+ function BIFE_Widget($attrs) // ~X2C
+ {
+ $this->__construct($attrs);
+ }
+ // -X2C
+
+ // +X2C Operation 127
+ /**
+ * Constructor.
+ *
+ * @param array $attrs Attributes.
+ *
+ * @return void
+ * @access public
+ */
+ function __construct($attrs) // ~X2C
+ {
+ $this->attrs = $attrs;
+ }
+ // -X2C
+
+ // +X2C Operation 4
+ /**
+ * Renders the widget using a template returning a string with the results.
+ *
+ * @param HTML_Template_HIT &$template Template object to render the widget.
+ *
+ * @return string
+ * @access public
* @abstract
*/
function render(&$template) // ~X2C
{
trigger_error('Method not implemented '.get_class($this).
- '::addContents().', E_USER_ERROR);
+ '::render().', E_USER_ERROR);
}
// -X2C
} // -X2C Class :Widget
-?>
+?>
\ No newline at end of file