1: <?php
2: /**
3: * This file contains the class for plugin settings
4: *
5: * @package Plugin
6: * @subpackage UserForum
7: * @author Claus Schunk
8: * @copyright four for business AG <www.4fb.de>
9: * @license http://www.contenido.org/license/LIZENZ.txt
10: * @link http://www.4fb.de
11: * @link http://www.contenido.org
12: */
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: * This class contains plugin settings.
18: *
19: *
20: * @package Plugin
21: * @subpackage UserForum
22: */
23: class UserForum {
24:
25: /**
26: * name of this plugin
27: *
28: * @var string
29: */
30: private static $_name = 'user_forum';
31:
32: /**
33: */
34: public static function getName() {
35: return self::$_name;
36: }
37:
38: public static function i18n($key) {
39: $trans = i18n($key, self::$_name);
40:
41: return $trans;
42: }
43:
44: /**
45: * Return URL to this plugins folder.
46: *
47: * @return string
48: */
49: public static function getUrl() {
50: $cfg = cRegistry::getConfig();
51:
52: $path = cRegistry::getBackendUrl() . $cfg['path']['plugins'];
53: $path .= self::$_name . '/';
54:
55: return $path;
56: }
57:
58: }