Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

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