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