| 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 (https://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: | //PHP 8.2 Dynamic properties deprecated |
| 27: | public $block_id; |
| 28: | public $module_id; |
| 29: | |
| 30: | /** |
| 31: | * |
| 32: | */ |
| 33: | public function __construct() |
| 34: | { |
| 35: | parent::__construct(); |
| 36: | $this->initVar('block_id', XOBJ_DTYPE_INT); |
| 37: | $this->initVar('module_id', XOBJ_DTYPE_INT); |
| 38: | } |
| 39: | } |
| 40: | |
| 41: | /** |
| 42: | * System block handler class. (Singelton) |
| 43: | * |
| 44: | * This class is responsible for providing data access mechanisms to the data source |
| 45: | * of XOOPS block class objects. |
| 46: | * |
| 47: | * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) |
| 48: | * @package system |
| 49: | * @subpackage avatar |
| 50: | */ |
| 51: | class SystemBlockLinkModuleHandler extends XoopsPersistableObjectHandler |
| 52: | { |
| 53: | /** |
| 54: | * @param null|XoopsDatabase $db |
| 55: | */ |
| 56: | public function __construct(XoopsDatabase $db) |
| 57: | { |
| 58: | parent::__construct($db, 'block_module_link', 'SystemBlockLinkModule', 'block_id', 'module_id'); |
| 59: | } |
| 60: | } |
| 61: |