X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/f42d10f67726bb642ff6a9adbd04f4aeb0af5121..8906fc15517052e513daa2d47ab9c6cacacc7d25:/BIFE/Widget.php diff --git a/BIFE/Widget.php b/BIFE/Widget.php index 36fe7d5..5e0ab11 100644 --- a/BIFE/Widget.php +++ b/BIFE/Widget.php @@ -1,7 +1,7 @@ | // +--------------------------------------------------------------------+ // // $Id$ @@ -34,24 +34,60 @@ * @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