1: <?php
2: /**
3: * Block Link Module Class Manager
4: *
5: * You may not change or alter any portion of this comment or credits
6: * of supporting developers from this source code or any supporting source code
7: * which is considered copyrighted (c) material of the original comment or credit authors.
8: * This program is distributed in the hope that it will be useful,
9: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11: *
12: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
13: * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
14: * @package system
15: */
16: // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
17:
18: /**
19: * System Block
20: *
21: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
22: * @package system
23: */
24: class SystemBlockLinkModule extends XoopsObject
25: {
26: /**
27: *
28: */
29: public function __construct()
30: {
31: parent::__construct();
32: $this->initVar('block_id', XOBJ_DTYPE_INT);
33: $this->initVar('module_id', XOBJ_DTYPE_INT);
34: }
35: }
36:
37: /**
38: * System block handler class. (Singelton)
39: *
40: * This class is responsible for providing data access mechanisms to the data source
41: * of XOOPS block class objects.
42: *
43: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
44: * @package system
45: * @subpackage avatar
46: */
47: class SystemBlockLinkModuleHandler extends XoopsPersistableObjectHandler
48: {
49: /**
50: * @param null|XoopsDatabase $db
51: */
52: public function __construct(XoopsDatabase $db)
53: {
54: parent::__construct($db, 'block_module_link', 'SystemBlockLinkModule', 'block_id', 'module_id');
55: }
56: }
57: