]> git.llucax.com Git - software/bife/bife-all.git/blobdiff - BIFE/Widget.php
- Fixed examples.
[software/bife/bife-all.git] / BIFE / Widget.php
index 36fe7d5a2d2f25f5bad19c4860d84d6069c0edf8..5e0ab11b9a00189841263bd475d8c4b220a6b193 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
 // +--------------------------------------------------------------------+
-// |                      BIFE - Buil It Fast & Easy                    |
+// |                       BIFE - Buil It FastEr                        |
 // +--------------------------------------------------------------------+
 // | This file is part of BIFE.                                         |
 // |                                                                    |
@@ -19,8 +19,8 @@
 // | along with Hooks; if not, write to the Free Software Foundation,   |
 // | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      |
 // +--------------------------------------------------------------------+
-// | Created: @date
-// | Authors: @author
+// | Created: Wed May 17 18:16:54 ART 2003                              |
+// | Authors: Leandro Lucarella <luca@lugmen.org.ar>                    |
 // +--------------------------------------------------------------------+
 //
 // $Id$
  * @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