Completed
Pull Request — master (#554)
by Richard
06:59
created

XoopsConfigOptionHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * XOOPS Kernel Class
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       XOOPS Project (http://xoops.org)
13
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
14
 * @package         kernel
15
 * @since           2.0.0
16
 * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
17
 * @version         $Id$
18
 */
19
20
namespace Xoops\Core\Kernel\Handlers;
21
22
use Xoops\Core\Database\Connection;
23
use Xoops\Core\Kernel\XoopsPersistableObjectHandler;
24
25
/**
26
 * XOOPS configuration option handler class.
27
 * This class is responsible for providing data access mechanisms to the data source
28
 * of XOOPS configuration option class objects.
29
 *
30
 * @category  Xoops\Core\Kernel\Handlers\XoopsConfigOptionHandler
31
 * @package   Xoops\Core\Kernel
32
 * @author    Kazumi Ono <[email protected]>
33
 * @copyright 2000-2015 XOOPS Project (http://xoops.org)
34
 * @license   GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
35
 * @link      http://xoops.org
36
 */
37
class XoopsConfigOptionHandler extends XoopsPersistableObjectHandler
38
{
39
    /**
40
     * Constructor
41
     *
42
     * @param Connection|null $db database
43
     */
44 3
    public function __construct(Connection $db = null)
45
    {
46 3
        parent::__construct(
47 3
            $db,
48 3
            'system_configoption',
49 3
            '\Xoops\Core\Kernel\Handlers\XoopsConfigOption',
50 3
            'confop_id',
51 3
            'confop_name'
52
        );
53 3
    }
54
}
55