1: <?php
2: /**
3: * This file contains the item class for userforum plugin.
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 functions db-query for cfg.
18: *
19: * @package Plugin
20: * @subpackage UserForum
21: */
22: class ArticleForumItem extends Item {
23:
24: protected $cfg;
25:
26: protected $db;
27:
28: public function __construct() {
29: $this->db = cRegistry::getDb();
30: $this->cfg = cRegistry::getConfig();
31:
32: parent::__construct($this->cfg['tab']['user_forum'], 'id_user_forum');
33: }
34:
35: /**
36: * returns current config
37: */
38: public function getCfg() {
39: return $this->cfg;
40: }
41:
42: }
43: ?>