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