Completed
Push — master ( 2f6fab...c5b9c9 )
by Goffy
11s queued 10s
created

XoopsBlockHandler::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace XoopsModules\Tools;
4
5
use XoopsDatabase;
6
use XoopsPersistableObjectHandler;
7
8
/**
9
 * tools Module for XOOPS
10
 *
11
 * You may not change or alter any portion of this comment or credits
12
 * of supporting developers from this source code or any supporting source code
13
 * which is considered copyrighted (c) material of the original comment or credit authors.
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
 *
18
 * @copyright       XOOPS Project (https://xoops.org)
19
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
20
 * @package         tools
21
 * @since           2.00
22
 * @author          Susheng Yang <[email protected]>
23
 */
24
class XoopsBlockHandler extends XoopsPersistableObjectHandler
25
{
26
    public function __construct(XoopsDatabase $db)
27
    {
28
        parent::__construct($db, 'newblocks', XoopsBlock::class, 'bid', 'name');
29
    }
30
}
31