]> git.llucax.com Git - software/bife/bife-all.git/blob - modules/bife/BIFE/Root.php
5ce9f8f375a74775afd566f6cc771f5b4e4f1728
[software/bife/bife-all.git] / modules / bife / BIFE / Root.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: Thu May 22 18:53:36 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 85 :Root
34 /**
35  * Root container class.
36  *
37  * @access public
38  * @abstract
39  */
40 class BIFE_Root extends BIFE_Container {
41     /**
42      * Root widget's required files.
43      *
44      * @var    array $required
45      * @access protected
46      */
47     var $required = array();
48
49     // ~X2C
50
51     // +X2C Operation 87
52     /**
53      * Constructor.
54      *
55      * @param  string $attrs Attributes.
56      *
57      * @return void
58      * @access public
59      */
60     function BIFE_Root($attrs) // ~X2C
61     {
62         $this->__construct($attrs);
63     }
64     // -X2C
65
66     // +X2C Operation 88
67     /**
68      * Constructor.
69      *
70      * @param  string $attrs Attributes.
71      *
72      * @return void
73      * @access public
74      */
75     function __construct($attrs) // ~X2C
76     {
77         if (@$attrs['USE']) {
78             foreach (split(':', $attrs['USE']) as $require) {
79                 require_once "BIFE/$require.php";
80                 $this->required[] = "BIFE/$require.php";
81             }
82             unset($attrs['USE']);
83         }
84         parent::__construct($attrs);
85     }
86     // -X2C
87
88     // +X2C Operation 150
89     /**
90      * Gets required files.
91      *
92      * @return array
93      * @access public
94      */
95     function getRequiredFiles() // ~X2C
96     {
97         return $this->required;
98     }
99     // -X2C
100
101 } // -X2C Class :Root
102
103 ?>