]> git.llucax.com Git - software/bife/bife-all.git/blob - core/BIFE/Fallback.php
Moved back to a clean bife directory. Each subdirectory has a module
[software/bife/bife-all.git] / core / BIFE / Fallback.php
1 <?php
2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // |                       BIFE - Buil It FastEr                        |
5 // +--------------------------------------------------------------------+
6 // | This file is part of BIFE.                                         |
7 // |                                                                    |
8 // | BIFE is free software; you can redistribute it and/or modify it    |
9 // | under the terms of the GNU General Public License as published by  |
10 // | the Free Software Foundation; either version 2 of the License, or  |
11 // | (at your option) any later version.                                |
12 // |                                                                    |
13 // | BIFE is distributed in the hope that it will be useful, but        |
14 // | WITHOUT ANY WARRANTY; without even the implied warranty of         |
15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   |
16 // | General Public License for more details.                           |
17 // |                                                                    |
18 // | You should have received a copy of the GNU General Public License  |
19 // | along with Hooks; if not, write to the Free Software Foundation,   |
20 // | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      |
21 // +--------------------------------------------------------------------+
22 // | Created: Tue May 20 17:57:56 2003                                  |
23 // | Authors: Leandro Lucarella <luca@lugmen.org.ar>                    |
24 // +--------------------------------------------------------------------+
25 //
26 // $Id$
27 //
28
29 // +X2C includes
30 require_once 'BIFE/Container.php';
31 // ~X2C
32
33 // +X2C Class 61 :Fallback
34 /**
35  * Fallback widget to use when no specific widget is implemented.
36  *
37  * @access public
38  * @abstract
39  */
40 class BIFE_Fallback extends BIFE_Container {
41     /**
42      * Name of the widget.
43      *
44      * @var    string $name
45      * @access private
46      */
47     var $name = '';
48
49     // ~X2C
50
51     // +X2C Operation 62
52     /**
53      * Constructor.
54      *
55      * @param  string $name Name of the widget to draw.
56      * @param  array $attrs Attributes.
57      *
58      * @return void
59      * @access public
60      */
61     function BIFE_Fallback($name, $attrs) // ~X2C
62     {
63         $this->__construct($name, $attrs);
64     }
65     // -X2C
66
67     // +X2C Operation 63
68     /**
69      * Constructor.
70      *
71      * @param  string $name Name of the widget.
72      * @param  array $attrs Attributes.
73      *
74      * @return void
75      * @access public
76      */
77     function __construct($name, $attrs) // ~X2C
78     {
79         parent::__construct($attrs);
80         $this->name = strtolower(strtr($name, ':', '_'));
81     }
82     // -X2C
83
84 } // -X2C Class :Fallback
85
86 ?>