1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: namespace Xoops\Core\Kernel\Handlers;
13:
14: use Xoops\Core\Database\Connection;
15: use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
16:
17: /**
18: * XOOPS Kernel Class
19: *
20: * @category Xoops\Core\Kernel\Handlers\XoopsBlockModuleLinkHandler
21: * @package Xoops\Core\Kernel
22: * @author Gregory Mage (AKA Mage)
23: * @author trabis <lusopoemas@gmail.com>
24: * @copyright 2000-2015 XOOPS Project (http://xoops.org)
25: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
26: * @link http://xoops.org
27: */
28: class XoopsBlockModuleLinkHandler extends XoopsPersistableObjectHandler
29: {
30: /**
31: * __construct
32: *
33: * @param null|Connection $db database
34: */
35: public function __construct(Connection $db = null)
36: {
37: parent::__construct(
38: $db,
39: 'system_blockmodule',
40: '\Xoops\Core\Kernel\Handlers\XoopsBlockModuleLink',
41: 'block_id',
42: 'module_id'
43: );
44: }
45: }
46: