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:
25: /**
26: * Class ArticleForum
27: */
28: class ArticleForum extends Item {
29: /**
30: * ArticleForum constructor.
31: *
32: * @param bool $id
33: *
34: * @throws cDbException
35: * @throws cException
36: */
37: public function __construct($id = false) {
38: $cfg = cRegistry::getConfig();
39: parent::__construct($cfg['tab']['user_forum'], 'id_user_forum');
40: $this->setFilters(array(), array());
41: if (false !== $id) {
42: $this->loadByPrimaryKey($id);
43: }
44: }
45:
46: }
47:
48: ?>