1: <?php
2: /**
3: * The Horde_Core_Tree_Simplehtml:: class extends the Horde_Tree_Simplehtml
4: * class to provide for creation of Horde-specific URLs.
5: *
6: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
7: *
8: * See the enclosed file COPYING for license information (LGPL). If you
9: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10: *
11: * @author Michael Slusarz <slusarz@horde.org>
12: * @category Horde
13: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
14: * @package Core
15: */
16: class Horde_Core_Tree_Simplehtml extends Horde_Tree_Simplehtml
17: {
18: /**
19: * Generate a link URL tag.
20: *
21: * @param string $node_id The node ID.
22: *
23: * @return string The link tag.
24: */
25: protected function _generateUrlTag($node_id)
26: {
27: return Horde::link(Horde::selfUrl()->add(Horde_Tree::TOGGLE . $this->_instance, $node_id));
28: }
29:
30: }
31: