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