1: <?php
2: /**
3: * Copyright 2011-2014 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (GPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/gpl.
7: *
8: * @category Horde
9: * @copyright 2011-2014 Horde LLC
10: * @license http://www.horde.org/licenses/gpl GPL
11: * @package IMP
12: */
13:
14: /**
15: * This class defines Jquerymobile output for a mailbox (folder tree) list.
16: *
17: * @author Michael Slusarz <slusarz@horde.org>
18: * @category Horde
19: * @copyright 2011-2014 Horde LLC
20: * @license http://www.horde.org/licenses/gpl GPL
21: * @package IMP
22: */
23: class IMP_Tree_Jquerymobile extends Horde_Tree_Renderer_Jquerymobile
24: {
25: /**
26: */
27: protected function _buildTree($node_id, $special)
28: {
29: $node = &$this->_nodes[$node_id];
30: $output = '';
31:
32: if (empty($node['container'])) {
33: $output = parent::_buildTree($node_id, $special);
34: } elseif (!empty($node['children'])) {
35: foreach ($node['children'] as $val) {
36: $output .= $this->_buildTree($val, $special);
37: }
38: }
39:
40: return $output;
41: }
42: }
43: