X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/db685c4492b0985544eb54e959278dec2b68142b..refs/heads/master:/BIFE/Widget.php?ds=sidebyside diff --git a/BIFE/Widget.php b/BIFE/Widget.php index cd1dd68..5e0ab11 100644 --- a/BIFE/Widget.php +++ b/BIFE/Widget.php @@ -34,27 +34,63 @@ * @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