]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MECON/HTML/Arbol/ArbolDB.php
09f53bed346e7adae390a23e81b1dffb839da9dd
[mecon/meconlib.git] / lib / MECON / HTML / Arbol / ArbolDB.php
1 <?
2
3
4
5
6
7 class HTML_ArbolDB extends HTML_Arbol
8 {
9     function ArbolDB()
10     {
11   $dat = array(
12          array(
13            'titulo' => 'Nivel0a',
14            'link' => 'blabla',
15            'sub' => array(//sub0
16                     array(
17                        'titulo' => 'Nivel1a',
18                        'link' => 'blabla',
19                        'sub' => array(//sub1
20                                 array(
21                                     'titulo' => 'Nivel3a',
22                                     'link' => 'blabla',
23                                     'activado' => 1
24                                 ),
25                                 array(
26                                     'titulo' => 'Nivel3b',
27                                     'link' => 'blabla',
28                                     'sub' => array(//sub2
29                                              array(
30                                                'titulo' => 'Nivel4',
31                                                'link' => 'blabla'
32                                              )
33                                              )//sub2
34                                 ),
35                                 array(
36                                     'titulo' => 'Nivel3c',
37                                     'link' => 'blabla'
38                                 )
39                                 )//sub1
40                    ),
41                    array(
42                        'titulo' => 'Nivel1b',
43                        'link' => 'blabla',
44                        'activado' => 1
45                    ),
46                    array(
47                        'titulo' => 'Nivel1c',
48                        'link' => 'blabla'
49                    )
50                    )//sub0
51        ),
52        array(
53            'titulo' => 'Nivel0b',
54            'link' => 'blabla'
55        ),
56        array(
57            'titulo' => 'Nivel0c',
58            'link' => 'blabla'
59        )
60   );
61
62         parent::Arbol($dat);
63     }
64 }
65
66
67 ?>