CategoriesHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace XoopsModules\Lexikon;
4
5
/*
6
 You may not change or alter any portion of this comment or credits
7
 of supporting developers from this source code or any supporting source code
8
 which is considered copyrighted (c) material of the original comment or credit authors.
9
10
 This program is distributed in the hope that it will be useful,
11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
*/
14
15
/**
16
 * Module: lexikon
17
 *
18
 * @category        Module
19
 * @package         lexikon
20
 * @author          XOOPS Development Team <[email protected]> - <https://xoops.org>
21
 * @copyright       {@link https://xoops.org/ XOOPS Project}
22
 * @license         GPL 2.0 or later
23
 * @link            https://xoops.org/
24
 * @since           1.0.0
25
 */
26
27
use Xmf\Module\Helper\Permission;
28
use XoopsDatabase;
29
30
31
32
33
$moduleDirName = \basename(\dirname(__DIR__));
34
35
$permHelper = new Permission($moduleDirName);
36
37
/**
38
 * Class LexikonCategoriesHandler
39
 */
40
class CategoriesHandler extends \XoopsPersistableObjectHandler
41
{
42
    /**
43
     * Constructor
44
     * @param null|\XoopsDatabase $db
45
     */
46
    public function __construct(XoopsDatabase $db = null)
47
    {
48
        parent::__construct($db, 'lxcategories', Categories::class, 'categoryID', 'name');
49
    }
50
}
51