1: <?php
2: /**
3: * Class that extends the base Bbcode class to allow output of Horde urls.
4: *
5: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (LGPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
9: *
10: * @author Michael Slusarz <slusarz@horde.org>
11: * @category Horde
12: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
13: * @package Core
14: */
15: class Horde_Core_Text_Filter_Bbcode extends Horde_Text_Filter_Bbcode
16: {
17: /**
18: * Return link for use in getPatterns() regexp.
19: *
20: * @param string $url The URL.
21: * @param string $title The link title.
22: *
23: * @return string The opening <a> tag.
24: */
25: protected function _link($url, $title)
26: {
27: return Horde::link($url, $title);
28: }
29:
30: }
31: