1: <?php
2: /**
3: * This file contains the class for db queries.
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 feature for db queries.
18: *
19: *
20: * @package Plugin
21: * @subpackage UserForum
22: */
23: defined('CON_FRAMEWORK') or die('Illegal call');
24: class ArticleForum extends Item {
25:
26: public function __construct($id = false) {
27: $cfg = cRegistry::getConfig();
28: parent::__construct($cfg['tab']['user_forum'], 'id_user_forum');
29: $this->setFilters(array(), array());
30: if (false !== $id) {
31: $this->loadByPrimaryKey($id);
32: }
33: }
34:
35: }
36:
37: ?>